IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Deafult Step exection priority in the JOB


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sarathbabum
Currently Banned

New User


Joined: 15 Mar 2007
Posts: 12
Location: Kerala

PostPosted: Tue Mar 20, 2007 6:07 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Mar 20, 2007 6:11 pm
Reply with quote

Why not set up the required JCL and test it many times and see what happens.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Mar 20, 2007 6:11 pm
Reply with quote

Hi Sharath,

It will execut in the order in which it specify in the jcl
So
s1
s2
s3
Back to top
View user's profile Send private message
sarathbabum
Currently Banned

New User


Joined: 15 Mar 2007
Posts: 12
Location: Kerala

PostPosted: Tue Mar 20, 2007 6:31 pm
Reply with quote

Mam,

it was not like that.... when i submit my pgm it show as s2, s3, s1
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Mar 20, 2007 6:33 pm
Reply with quote

Please post your JCL and job output.
Back to top
View user's profile Send private message
sarathbabum
Currently Banned

New User


Joined: 15 Mar 2007
Posts: 12
Location: Kerala

PostPosted: Tue Mar 20, 2007 6:50 pm
Reply with quote

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
View user's profile Send private message
sarathbabum
Currently Banned

New User


Joined: 15 Mar 2007
Posts: 12
Location: Kerala

PostPosted: Tue Mar 20, 2007 6:53 pm
Reply with quote

HI,

i submit step in the order s1, s2, s3 but i got o/p as s3 s1 s2
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Mar 20, 2007 6:54 pm
Reply with quote

If you look at JESMSGLG it will show you in which order the steps processed.
Back to top
View user's profile Send private message
kanchan kumar

New User


Joined: 03 Feb 2007
Posts: 1
Location: delhi

PostPosted: Wed Mar 21, 2007 12:24 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Mar 21, 2007 12:31 am
Reply with quote

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
View user's profile Send private message
sarathbabum
Currently Banned

New User


Joined: 15 Mar 2007
Posts: 12
Location: Kerala

PostPosted: Wed Mar 21, 2007 10:04 am
Reply with quote

SIR,

will u please explain the purpose of DSID
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Mar 21, 2007 7:25 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top