View previous topic :: View next topic
|
Author |
Message |
Mohamed Abdullah Dhaha
New User
Joined: 30 Dec 2008 Posts: 5 Location: Bangalore, India
|
|
|
|
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 |
|
|
Steve Davies
New User
Joined: 15 Oct 2009 Posts: 32 Location: UK
|
|
|
|
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 |
|
|
Mohamed Abdullah Dhaha
New User
Joined: 30 Dec 2008 Posts: 5 Location: Bangalore, India
|
|
|
|
yes. I got your point. Thanks for your answer. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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
d |
|
Back to top |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
I agree with dick's point....
why do you have to created a GDG when you have to delete it... |
|
Back to top |
|
|
|