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
 
To pick up the oldest generation in a GDG

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

New User


Joined: 02 Dec 2005
Posts: 8
Location: Mysore, INDIA

PostPosted: Tue Apr 03, 2007 1:09 pm    Post subject: To pick up the oldest generation in a GDG
Reply with quote

Hi,

i have a requirement in which i have to process the version of GDG in FIFO manner (First In First Out) i.e. i want to pick up the oldest version under a particular GDG base, process it , delete it and for the next run pick up the other oldest version.

This goes on , till all the versions are processed and thereby delted.

i hope i was clear enough in stating my requirement.
waiting for your valuable replies.

thanks
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: Tue Apr 03, 2007 1:17 pm    Post subject:
Reply with quote

Can you explain your situation as to why you need to operate in this manner. It may be that the members of this forum can come up with a better solution to your requirement.

The unfortunate thing about using GDGs in the manner described is that they could change during processing, so by using the relative generation may give incorrect results.

The safest way is to use the absolute generation.

Why can you not just process the whole GDG base in one hit. That's what I'd try to do first.
Back to top
View user's profile Send private message
jetumax

New User


Joined: 02 Dec 2005
Posts: 8
Location: Mysore, INDIA

PostPosted: Tue Apr 03, 2007 2:48 pm    Post subject: Re: To pick up the oldest generation in a GDG
Reply with quote

Thanks for consideration.

But the generation for given GDG will be created simultaneously when above mention process is going on.

Some other job will be creating new generations and our new job have to read first in first out (oldest to latest generation) , process it and then delete it till any of the generations left for that GDG.
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: Tue Apr 03, 2007 3:00 pm    Post subject:
Reply with quote

Then you will probably need a REXX or something to process the output from a LISTCAT to get the absolute generation number to process.
Back to top
View user's profile Send private message
jetumax

New User


Joined: 02 Dec 2005
Posts: 8
Location: Mysore, INDIA

PostPosted: Fri Apr 06, 2007 7:51 pm    Post subject:
Reply with quote

Thanks alott . I have used rexx ... its working... I thought we can make it work using JCL...but its ok
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 965
Location: Richmond, Virginia

PostPosted: Mon Apr 09, 2007 5:27 pm    Post subject:
Reply with quote

JCL:

1. Run IDCAMS LISTCAT; the report will list all existing generations
2. Input this report into a program and pull off the first generation listed
3. Have the program create the JCL you want using the generation you pulled from the report
4. Submit your generated JCL via the internal reader

I didn't say it was trivial, but it works.
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 How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts alphanumeric sequence generation sivaprasad.gadhi COBOL Programming 6 Wed Mar 30, 2016 3:03 am
No new posts alphanumeric sequence generation sivaprasad.gadhi DFSORT/ICETOOL 8 Mon Mar 21, 2016 1:09 am

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