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

doubt in restart parameter


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mohamed Abdullah Dhaha

New User


Joined: 30 Dec 2008
Posts: 5
Location: Bangalore, India

PostPosted: Mon Oct 19, 2009 12:40 pm
Reply with quote

I have 3 step jcl.

step1 generates one GDG
step2 uses that GDG, which is generated by step1
step3 deletes the GDG.

while running the job step1 runs successfully, and the step2 abends.

I need to restart the job from step2.

if I use the jobcard parameter RESTART=STEP2, it abends again.

This is the interview question, asked to me.
Back to top
View user's profile Send private message
Steve Davies

New User


Joined: 15 Oct 2009
Posts: 32
Location: UK

PostPosted: Mon Oct 19, 2009 1:12 pm
Reply with quote

Step 1 will create a new verison of the GDG (+1). If Step 2 is to use that version it will refer to it by (+1) as it was created with the same job.

If Step 2 abends and is restarted it will fail unless you change the version if the GDG to point to generation (0) in Step 2. This is because the GDG version is created and catalogued in the previous job that failed, and is now generation (0) because the job that created it has finished.

If step 3 deletes the GDG, it will probably be pointing to (+1), which doesn't exist when the job is restarted in Step 2, so will probably fail after step 2 has run!

Does that make sense to you?
Back to top
View user's profile Send private message
Mohamed Abdullah Dhaha

New User


Joined: 30 Dec 2008
Posts: 5
Location: Bangalore, India

PostPosted: Mon Oct 19, 2009 2:05 pm
Reply with quote

yes. I got your point. Thanks for your answer.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Oct 19, 2009 2:08 pm
Reply with quote

Steve Davies wrote:
Step 1 will create a new verison of the GDG (+1). If Step 2 is to use that version it will refer to it by (+1) as it was created with the same job.
If Step 2 abends and is restarted it will fail unless you change the version if the GDG to point to generation (0) in Step 2. This is because the GDG version is created and catalogued in the previous job that failed, and is now generation (0) because the job that created it has finished.

If step 3 deletes the GDG, it will probably be pointing to (+1), which doesn't exist when the job is restarted in Step 2, so will probably fail after step 2 has run!

Does that make sense to you?

/RANT ON

When talking about GDS it is important to use the correct terminology, as both version and generation are both valid in terms of a GDS.

It is a well known fact that only one version of a GDS may exist at any one time, however, multiple generations may exist together.

Please learn and use the correct terminology when posting, as using the wrong term can cause confusion and possibly delay a resolution to your problem

/RANT OFF
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Oct 19, 2009 10:06 pm
Reply with quote

Hello,

And FWIW, a dataset that is created in step1, used in step2, and deleted in step3 is an extremely poor choice for a gdg. . . Making this a rather pathetic interview question icon_sad.gif

d
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Wed Nov 18, 2009 2:57 pm
Reply with quote

I agree with dick's point.... icon_lol.gif
why do you have to created a GDG when you have to delete it...
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top