View previous topic :: View next topic
|
Author |
Message |
Vineet
New User
Joined: 14 Sep 2005 Posts: 20
|
|
|
|
Hi,
I am having small confusion reagrding creation of Generation. Lets say I ahave a Job, where in there are 5 steps. at Step3 I am creating one Generation with Disp=(New,Catlg,Delete), Step3 went off smoothly. At Step5 Job Abends. Will the Geneeraton at Step3 gets created inspite of Job abends at Step 5. Please Help.
Thanx |
|
Back to top |
|
|
john vijay
New User
Joined: 09 Mar 2006 Posts: 8 Location: hyderabad
|
|
|
|
hi vineet,
as fara as my knowledge is concerned, job will run and ur step 3 will be executed. even if ur 5 step abends.
normally sometimes we keep condition like
even if the prior step abends run the successive step like that,
as ur disposition is new catlg delete, definitely if will cataloged.
pls correct me if i'm wrong |
|
Back to top |
|
|
Vineet
New User
Joined: 14 Sep 2005 Posts: 20
|
|
|
|
Hi Thanx for the reply.Well here question is not of putting the COND parameter. As far as my knowledge goes, generation gets created only after teh completion of JOB not STEP, if generation is getting created after completion of STEP then, in subsequent step to refer the Same generation we have to use (0), rather than (+1) with disp=shr. My query still the same if job Abends abnormally then will the generation be created or not. |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Vineet wrote: |
Hi Thanx for the reply.Well here question is not of putting the COND parameter. As far as my knowledge goes, generation gets created only after teh completion of JOB not STEP, if generation is getting created after completion of STEP then, in subsequent step to refer the Same generation we have to use (0), rather than (+1) with disp=shr. My query still the same if job Abends abnormally then will the generation be created or not. |
Hi Vineet,
if u have coded generations to be created at step1,2, and 3 and if the job abends at step2 even then at step1 generation will be created.
As an example G0001V00 will be created. |
|
Back to top |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
Hi,
In GDG, GDG(0) means it points to the latest version which is generated.
When the job executes it will generate new version but this version will not be pointed as latest.
When the job abends, previously generated versions will be rolled in but the version which is generated in the step which is abended will be rolled out. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Vineet wrote: |
As far as my knowledge goes, generation gets created only after the completion of JOB not STEP, if generation is getting created after completion of STEP then, in subsequent step to refer the Same generation we have to use (0), rather than (+1) with disp=shr. My query still the same if job Abends abnormally then will the generation be created or not. |
I'd be curious to see where you're getting your information from. What you've stated doesn't make sense logically, and doesn't prove itself in a real-world situation either. According to the z/OS V1R7.0 DFSMS Using Data Sets manual:
Quote: |
When cataloging is requested using JCL, all actual cataloging occurs at step termination, but the relative generation number remains the same throughout the job. The following results can occur:
* A relative number used in the JCL refers to the same generation throughout a job.
* A job step that ends abnormally can be deferred for a later step restart. If the job step successfully cataloged a generation data set in its GDG, you must change all relative generation numbers in the next steps using JCL before resubmitting the job.
For example, if the next steps contained the following relative generation numbers:
A.B.C(+1) refers to the entry cataloged in the terminated job step, or
A.B.C(0) refers to the next to the latest entry, or
A.B.C(-1) refers to the latest entry, before A.B.C(0).
You must change A.B.C(+1) to A.B.C(0), A.B.C(0) to A.B.C(-1), and A.B.C(-1) to A.B.C(-2) before restarting the step.
|
|
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Vineet,
Dataset DISPs take effect at step termination. So, the DS created in step3 is created then and will be available in spite of the fact that step5 abended.
GDGs are created in the step, but the relative gen # is resolved into an absolute # at job term. |
|
Back to top |
|
|
|