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
 

 

Confusion reagrding creation of Generation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Vineet

New User


Joined: 14 Sep 2005
Posts: 18

PostPosted: Thu Aug 31, 2006 12:07 pm    Post subject: Confusion reagrding creation of Generation
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    Post subject:
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: 18

PostPosted: Thu Aug 31, 2006 2:28 pm    Post subject: Re: Confusion reagrding creation of Generation
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: 216
Location: India

PostPosted: Fri Sep 01, 2006 2:51 pm    Post subject: Re: Confusion reagrding creation of Generation
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    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Sep 01, 2006 3:51 pm    Post subject: Re: Confusion reagrding creation of Generation
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts ISPF Tables Creation newsysprg TSO/ISPF 6 Wed Jul 13, 2016 2:21 pm
No new posts How to detect file creation event? vasanthz All Other Mainframe Topics 5 Fri May 20, 2016 1:33 am
No new posts alphanumeric sequence generation sivaprasad.gadhi COBOL Programming 6 Wed Mar 30, 2016 3:03 am


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