Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Deafult Step exection priority in the JOB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Deafult Step exection priority in the JOB
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 20, 2007 6:11 pm    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Tue Mar 20, 2007 6:11 pm    Post subject:
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    Post subject: Re: step priority
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 20, 2007 6:33 pm    Post subject:
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    Post subject: Re: Deafult Step exection priority in the JOB
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    Post subject: Re: Deafult Step exection priority in the JOB
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 20, 2007 6:54 pm    Post subject:
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    Post subject: Re: Deafult Step exection priority in the JOB
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

Site Director


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

PostPosted: Wed Mar 21, 2007 12:31 am    Post subject:
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    Post subject: Re: Deafult Step exection priority in the JOB
Reply with quote

SIR,

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

Site Director


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

PostPosted: Wed Mar 21, 2007 7:25 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us