View previous topic :: View next topic
|
Author |
Message |
sarathbabum Currently Banned New User
Joined: 15 Mar 2007 Posts: 12 Location: Kerala
|
|
|
|
in a job i have 3 step s1, s2, s3 respectievely. these 3 steps are simple Cobol pgm for display some msg. i didnt specify any priority for these three. which step will execute first |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Why not set up the required JCL and test it many times and see what happens. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Sharath,
It will execut in the order in which it specify in the jcl
So
s1
s2
s3 |
|
Back to top |
|
|
sarathbabum Currently Banned New User
Joined: 15 Mar 2007 Posts: 12 Location: Kerala
|
|
|
|
Mam,
it was not like that.... when i submit my pgm it show as s2, s3, s1 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Please post your JCL and job output. |
|
Back to top |
|
|
sarathbabum Currently Banned New User
Joined: 15 Mar 2007 Posts: 12 Location: Kerala
|
|
|
|
Code: |
//JOB1 JOB NOTIFY=ESCUB11
//JOBLIB DD DSN=ESCUB11.SARATH.LOAD,DISP=SHR
//S1 EXEC PGM=D1COB
//S2 EXEC PGM=D2COB
//S3 EXEC PGM=D3COB
//SYSOUT DD SYSOUT=*
OUTPUT..
SDSF JOB DATA SET DISPLAY - JOB JOB1 (JOB09730) LINE 1-6 (6)
COMMAND INPUT ===> SCROLL ===> PAGE
NP DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt Page
JESMSGLG JES2 2 ESCUB11 H LOCAL 16
JESJCL JES2 3 ESCUB11 H LOCAL 6
JESYSMSG JES2 4 ESCUB11 H LOCAL 30
SYSOUT S3 101 ESCUB11 H LOCAL 1
SYSOUT S1 102 ESCUB11 H LOCAL 1
SYSOUT S2 103 ESCUB11 H LOCAL 1
|
|
|
Back to top |
|
|
sarathbabum Currently Banned New User
Joined: 15 Mar 2007 Posts: 12 Location: Kerala
|
|
|
|
HI,
i submit step in the order s1, s2, s3 but i got o/p as s3 s1 s2 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
If you look at JESMSGLG it will show you in which order the steps processed. |
|
Back to top |
|
|
kanchan kumar
New User
Joined: 03 Feb 2007 Posts: 1 Location: delhi
|
|
|
|
if u would have used dprty then it would have given u priority acc to dprty parameter otherwise now it will certenly give u o/p in the sequence u have submitted ur job.
kanchan |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Please notice that the output is in DSID sequence. This has nothing to do with execution order. The steps were executed in the order submitted (s1, s2, s3).
The reason for the "out of sequence" DSIDs is that there is only one "//SYSOUT DD SYSOUT=*" statement - on the last step. JES assigned the DSID to the DD that was coded. When the other steps ran and a SYSOUT was generated dynamically, they were assigned the next DSID. If you use a "//SYSOUT DD SYSOUT=*" for each step, the output queue will be as you want/expect. |
|
Back to top |
|
|
sarathbabum Currently Banned New User
Joined: 15 Mar 2007 Posts: 12 Location: Kerala
|
|
|
|
SIR,
will u please explain the purpose of DSID |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
DSID is how JES keeps track of all of the JES datasets created by a job. It is internally generated. As JES "sees" SYSOUT datasets, it assigns a DSID starting at 101.
When the SYSOUT is created at program execution time (rather than when JES first sees the JCL), the "next" DSID is assigned which can cause the output datasets to be "out of sequence" by execution order.
The best plan is to include the DD statements for every SYSOUT. It doesn't cost much in terms of overhead and makes looking at queued output much easier if the outputs are in the order they were created rather than the order that JES became aware of them. |
|
Back to top |
|
|
|