Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Question on GDG versions

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

New User


Joined: 31 Jan 2008
Posts: 30
Location: Woodland Hills, CA

PostPosted: Mon Jan 05, 2009 11:27 am    Post subject: Question on GDG versions
Reply with quote

In my JCL, In step1 I will going to delete latest generation data set for that i gave gdgname(+0). In step2 I want to copy datas from another dataset to the current version. Can I do this in the same job?

eg: In step1 I have deleted the version G0010V00 of a GDG. In step2 I am trying to copy datas from another flat file to the GDG version G0010V00. Is this possible to do in the same job?

I tried to do this in the following way. In step1 I deleted the GDG using '(0)' and in step2 I copied the datas using '(+1)'. But it creates an extra version. The GDG version G0010V00 got deleted and a new version G0011V00 has been created. When I tried '(0)' in both steps it shows JCL error. Please give me a solution.
Back to top
View user's profile Send private message

muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Mon Jan 05, 2009 12:20 pm    Post subject:
Reply with quote

If you need to create it again as G0010V00,then you have to use two jobs.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jan 05, 2009 12:36 pm    Post subject:
Reply with quote

Hello,

Suggest you re-think the approach being used. If i understand what you want to do, you are using a gdg in a not typical way. Typically gdg generations are created to be retained for some amount opf time or some number of iterations. Typically, schemes that try to replace generations have proglems with knowing which data is available and how to handle restarts.

If you explain what the data requirement is or what business function this will support, we may be able to offer alternative suggestoins.
Back to top
View user's profile Send private message
jithumohan

New User


Joined: 31 Jan 2008
Posts: 30
Location: Woodland Hills, CA

PostPosted: Mon Jan 05, 2009 3:24 pm    Post subject: Reply to: Question on GDG versions
Reply with quote

I will go with 2 jobs. Thank you all for the help
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jan 05, 2009 3:35 pm    Post subject:
Reply with quote

I suppose that you could have just written to gdg.base(0) rather than delete it and then try to recreate it.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jan 05, 2009 5:07 pm    Post subject:
Reply with quote

Quote:
you could have just written to gdg.base(0) rather than delete it and then try to recreate it.
But then every time a next generation will be created..& he wants to keep only first generation..!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jan 05, 2009 5:14 pm    Post subject:
Reply with quote

Quote:
But then every time a next generation will be created..& he wants to keep only first generation..!

Where does he say that ?

What I meant was, do not delete gen 0, merely write over it
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Mon Jan 05, 2009 6:50 pm    Post subject:
Reply with quote

Quote:
he wants to keep only first generation..!

I think he wants to keep the last icon_lol.gif (generation number)
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jan 05, 2009 8:32 pm    Post subject:
Reply with quote

Hello,

Unless/until additional information about the requirement is posted, i still believe it is not a good candidate for being a gdg. . .
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Jan 06, 2009 2:10 pm    Post subject:
Reply with quote

Hi,

The approach he has shown seems to be a way to meet his requirement but I don't think it's the actual requirement. I second to Dick:
Quote:
Unless/until additional information about the requirement is posted, i still believe it is not a good candidate for being a gdg. . .
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 question about dfsms management clas... Hervey Martinez IBM Tools 0 Tue Oct 10, 2017 6:19 pm
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us