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

Confusion reagrding creation of Generation


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vineet

New User


Joined: 14 Sep 2005
Posts: 20

PostPosted: Thu Aug 31, 2006 12:07 pm
Reply with quote

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
View user's profile Send private message
john vijay

New User


Joined: 09 Mar 2006
Posts: 8
Location: hyderabad

PostPosted: Thu Aug 31, 2006 2:09 pm
Reply with quote

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
View user's profile Send private message
Vineet

New User


Joined: 14 Sep 2005
Posts: 20

PostPosted: Thu Aug 31, 2006 2:28 pm
Reply with quote

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
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Fri Sep 01, 2006 2:51 pm
Reply with quote

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
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Fri Sep 01, 2006 3:22 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Sep 01, 2006 3:51 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Sep 02, 2006 6:29 am
Reply with quote

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
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 DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Report generation JCL & VSAM 18
No new posts JCL sort card for file creation condi... DFSORT/ICETOOL 4
No new posts How can I get Generation Nbr of GDG f... IBM Tools 1
Search our Forums:

Back to Top