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
 

 

JCL steps execution

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Sunaina Javali

New User


Joined: 22 Apr 2009
Posts: 16
Location: Bangalore

PostPosted: Tue Jun 02, 2009 6:36 pm    Post subject: JCL steps execution
Reply with quote

I have a job in which steps 4 & 5 create a new generation. 4th step output is used as input in the 6th step & 5th step output is used as input in the 7th step. How they are referred as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is referred in 7th step?


Thanks,
Nisha
Back to top
View user's profile Send private message

chaky

New User


Joined: 28 May 2009
Posts: 20
Location: Bangalore

PostPosted: Tue Jun 02, 2009 7:02 pm    Post subject:
Reply with quote

Here my understanding is...

Normal execution.
STEP4 ..... output file1 (+1).
STEP5 ..... output file2 (+1).
STEP6 ..... output file1 (+1) as input file.
STEP7 ..... output file2 (+1) as input file.

Suppose Job gets abended in STEP4, Restart the JOB from STEP4 without any changes.

If Job gets abended in STEP5, Restart the JOB from STEP5 but change the version of ouput file1 in STEP6 to Zero and rest all same.

If Job gets abended in STEP6, Restart the JOB from STEP6 but change the version of ouput file1 in STEP6 to Zero and version of ouput file2 in STEP7 to Zero.

If Job gets abended in STEP7, Restart the JOB from STEP7 but change the version of ouput file2 in STEP7 to Zero.
Back to top
View user's profile Send private message
Sunaina Javali

New User


Joined: 22 Apr 2009
Posts: 16
Location: Bangalore

PostPosted: Tue Jun 02, 2009 7:16 pm    Post subject:
Reply with quote

Hey,

I will try with this information...
let me know how this works.... :-)

Thanks,
Nisha
Back to top
View user's profile Send private message
chaky

New User


Joined: 28 May 2009
Posts: 20
Location: Bangalore

PostPosted: Tue Jun 02, 2009 7:30 pm    Post subject:
Reply with quote

Nisha,

What happens suppose in one step you create a GDG version, then we give version as (+1) or next generation depends on your requirement and the job gets abend in later stage. So now the version you created becomes the current version means (0) which we use in the next run for restarting the job. Same is the case with your requirement. Then we give RESTART parameter in JOB card with the step name

You should give this documentation to support people for each step like if step1 gets abend what needs to do and what all the changes need to make.
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 Jun 02, 2009 7:35 pm    Post subject:
Reply with quote

/ RANT ON
What happens suppose in one step you create a GDG generation, then we give generation as (+1) or next generation depends on your requirement and the job gets abend in later stage. So now the version you created becomes the current generation means (0) which we use in the next run for restarting the job. Same is the case with your requirement. Then we give RESTART parameter in JOB card with the step name

You should give this documentation to support people for each step like if step1 gets abend what needs to do and what all the changes need to make.
/ RANT OFF

Please use the correct terminology as both generation and version are both valid in respect to a GDS - but both have a valid but different meaning.

Help us to help you.
Back to top
View user's profile Send private message
chaky

New User


Joined: 28 May 2009
Posts: 20
Location: Bangalore

PostPosted: Tue Jun 02, 2009 7:40 pm    Post subject:
Reply with quote

ooppsss icon_smile.gif

Thanks expat....
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2238
Location: @my desk

PostPosted: Tue Jun 02, 2009 7:41 pm    Post subject:
Reply with quote

Nisha,

Are all the four steps using the same GDG base? Or does it follow the example shown in chakys post.
Back to top
View user's profile Send private message
chaky

New User


Joined: 28 May 2009
Posts: 20
Location: Bangalore

PostPosted: Wed Jun 03, 2009 2:44 am    Post subject:
Reply with quote

Good catch arcvns icon_smile.gif

If all four steps are using the same GDG base then solution will be as given below.

Normal execution.
STEP4 ..... output file1 (+1).
STEP5 ..... output file1 (+2).
STEP6 ..... output file1 (+1) as input file.
STEP7 ..... output file1 (+2) as input file.

Suppose Job gets abended in STEP4, Restart the JOB from STEP4 without any changes.

If Job gets abended in STEP5, Restart the JOB from STEP5 but change the generation of ouput file1 in STEP6 to Zero and in STEP5 and STEP7 change the generation to (+1).

If Job gets abended in STEP6, Restart the JOB from STEP6 but change the generation of ouput file1 in STEP6 to (-1) and in STEP7 change the generation to (0).

If Job gets abended in STEP7, Restart the JOB from STEP7 but in STEP7 change the generation to (0).

I hope now we have covered all the cases.
Back to top
View user's profile Send private message
Sunaina Javali

New User


Joined: 22 Apr 2009
Posts: 16
Location: Bangalore

PostPosted: Wed Jun 03, 2009 11:32 am    Post subject:
Reply with quote

Yes the GDG Base is same.

Thank you Chaky... icon_biggrin.gif i gotit..!!!!


thanks you all for u r help..... icon_biggrin.gif



Regards,
Nisha
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
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
No new posts output DDname JESMSGLG job during exe... italo_pm TSO/ISPF 16 Tue Jun 21, 2016 11:13 am
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts Can a DB2 insert trigger execution of... TS70363 DB2 6 Tue Nov 24, 2015 10:44 pm


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