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

JCL steps execution


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jun 02, 2009 7:35 pm
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
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: 2481
Location: @my desk

PostPosted: Tue Jun 02, 2009 7:41 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts Parallel Sysplex - subprogram execution CICS 7
No new posts Prod parallel execution on mainframe ... CICS 1
No new posts Identify the count from two diffrent ... DFSORT/ICETOOL 19
Search our Forums:

Back to Top