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

GDG Versions update status after job abends


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

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Mon Oct 15, 2007 11:05 am
Reply with quote

Hi All,
Good morning...

I have a question on GDG datasets..if you know the aswer, pls respond

Job is having three steps:

Step1: Creates the GDG version 1..i.e. (+1)

Step2: uses the version +1 created at step1 and creates new version +2

Step3: Uses the version +2.

Now the question is, if my job abends at the step2, are versions updated as they are updated when the job ends successfully??, like ... the recent version is numbered as 0 at the successfull end of the job.


Thanks and regards
Venkat
Back to top
View user's profile Send private message
aishwarya_singh

New User


Joined: 06 Apr 2005
Posts: 21

PostPosted: Mon Oct 15, 2007 11:29 am
Reply with quote

Hi venktv,

Can you be more clear? What is your exact requirement?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Oct 15, 2007 11:38 am
Reply with quote

Quote:
Now the question is, if my job abends at the step2, are versions updated as they are updated when the job ends successfully??,


Yes, if your job abends in step2 then your first version(+1) will still be catalogued and the availability of version(+2) depends on why the job abended in step 2.

If you restart the step from step2 then refer to the version created in step 1 as version(0) .


Quote:
updated when the job ends successfully??,


Did a Search and got this

Quote:
The datasets CAN be cataloged even if the job abends, provided that the job abends AFTER the the step that created the GDG dataset completes SUCCESSFULLY and the DISP was coded appropriately.
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Mon Oct 15, 2007 11:40 am
Reply with quote

Hi Venkat,

Quote:
I have a question on GDG datasets..if you know the aswer, pls respond

Job is having three steps:

Step1: Creates the GDG version 1..i.e. (+1)

Step2: uses the version +1 created at step1 and creates new version +2

Step3: Uses the version +2.

Now the question is, if my job abends at the step2, are versions updated as they are updated when the job ends successfully??, like ... the recent version is numbered as 0 at the successfull end of the job.


GDG generation and Version will be updated as soon as JOB Completes. ROLLING IN(Keeping New Version) of GDG depends on when Job was ABEND. As your question, +1 version will be updated(ROLLED IN), and If +2 version is created and used, then then this also will be updated(ROLLED IN).

When you are resubmitting Job next time Refer (+1) version as (-1) and If you wanna refer (+2) version then refer as (+0). If you don't wanna refer +2 version then delete it and again refer (+1) version as (+0).
And RESTART your Job from STEP2.

But I am clear picture of your question

Quote:
if my job abends at the step2, are versions updated as they are updated when the job ends successfully??, like ... the recent version is numbered as 0 at the successfull end of the job


Are you looking for somethig different, Then post it.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Mon Oct 15, 2007 11:49 am
Reply with quote

Hi,

If ur job abends in STEP2, Step1 version becomes current version (i.e. 0) for future reference if u have not coded proper DISP in STEP2 to catalog dataset in case of abend.

If u have coded proper DISP in STEP2 to catalog dataset even in case of abend, STEP2 Version becomes current version (0) and STEP1 version becomes 1st previous version (-1).

KSK
Back to top
View user's profile Send private message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Mon Oct 15, 2007 11:53 am
Reply with quote

Friends,
Just wanted to know whether versions are updated or not, if the job abends ...

Thanks for the responses..

Venkat
Back to top
View user's profile Send private message
aishwarya_singh

New User


Joined: 06 Apr 2005
Posts: 21

PostPosted: Mon Oct 15, 2007 12:11 pm
Reply with quote

Yes versions will be updated...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Oct 15, 2007 9:33 pm
Reply with quote

Quote:
Yes, if your job abends in step2 then your first version(+1) will still be catalogued and the availability of version(+2) depends on why the job abended in step 2.

NO, it does not, it depends on the DISP parameters coded in the JCL.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Oct 16, 2007 10:57 am
Reply with quote

Quote:
NO, it does not, it depends on the DISP parameters coded in the JCL.


Yes, I agree it also depends on the DISP parameters coded in the JCL. Missed mentioning in my earlier post.
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 Job completes in JES, but the status ... IBM Tools 1
No new posts Batch call online program, EXCI task ... CICS 3
No new posts File Status 04 COBOL Programming 3
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
No new posts Read a flat file and update DB2 table JCL & VSAM 2
Search our Forums:

Back to Top