About Post-job server subroutine

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vigneshra
Participant
Posts: 86
Joined: Wed Jun 09, 2004 6:07 am
Location: Chennai

About Post-job server subroutine

Post by vigneshra »

Hi

We are having an after-job subroutine that creates the job run report in the needed format. In our project we are having nearly 100 jobs, few are independent and few are dependent on each other. The doubt I have is that all the jobs are accessing the same after-job subroutine to generate the report and will there be any problem like object code is locked by another job or something of that sort? Or for each job, will there be a new instance created?

Please clarify this!
Thanks!
Vignesh.

"A conclusion is simply the place where you got tired of thinking."
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

vigneshra,

when you compile and catalogue an after-job subroutine a single copy of the code is placed in the catalog space; any job that uses a subroutine with the same name will get the current copy. If you change & recompile this routine all jobs, except those that are currently running, will use the new code. Access to this common routine is not limited, there is no locking done.
vigneshra
Participant
Posts: 86
Joined: Wed Jun 09, 2004 6:07 am
Location: Chennai

Post by vigneshra »

Hi Arnd,

Thank you very much for the info. This would be of great help to our project.
Vignesh.

"A conclusion is simply the place where you got tired of thinking."
Post Reply