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
 

 

doubt in restart parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: doubt in restart parameter
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Oct 19, 2009 2:08 pm    Post subject:
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

Site Director


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

PostPosted: Mon Oct 19, 2009 10:06 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Doubt in MFS abdulrafi IMS DB/DC 2 Fri Oct 21, 2016 3:09 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm


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