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
 

 

Multiple GDG versions to a single file (FIFO layout)

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

New User


Joined: 27 Dec 2010
Posts: 2
Location: Bangalore,India

PostPosted: Fri Sep 13, 2013 8:45 pm    Post subject: Multiple GDG versions to a single file (FIFO layout)
Reply with quote

Hi,

I have a requirement where I need to include only the gdg base name and then copy all the versions to a sequential file but the file needs to be copied from the oldest generation to the latest generation which means the layout should be in FIFO layout. Is there any possibility where can do this process.

Thanks,
Meenakshi
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Fri Sep 13, 2013 8:57 pm    Post subject:
Reply with quote

Of course. If this will be a repeated task, you have to determine what generations there are using IDCAMS or a similar tool, then fabricate and submit JCL using that information. If a one-time task, you will likely be better off perform those step by hand.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Fri Sep 13, 2013 10:39 pm    Post subject: Reply to: Multiple GDG versions to a single file (FIFO layou
Reply with quote

Isn't FIFO, oldest generation first, simply what you want? What problem are you havin?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Sat Sep 14, 2013 12:39 am    Post subject:
Reply with quote

First problem - he wants versions not generations icon_smile.gif
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Sat Sep 14, 2013 12:51 am    Post subject:
Reply with quote

Nic Clouston wrote:
First problem - he wants versions not generations icon_smile.gif

Well, she said "versions" once but "generation" twice; as Meat Loaf said, "Two out of three ain't bad" icon_biggrin.gif
Back to top
View user's profile Send private message
ouintonfloury

New User


Joined: 27 Dec 2010
Posts: 2
Location: Bangalore,India

PostPosted: Sat Sep 14, 2013 2:29 pm    Post subject: Reply to: Multiple GDG versions to a single file (FIFO layou
Reply with quote

Sorry to confuse you people, basically I want the GDG generations to be copied into a sequential file with the oldest generation getting copied first and then the latest. If I use sort or IEBCOPY, the latest generation is copied first and then the oldest. I need to copy these files on a daily basis ... Can we do that
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Sat Sep 14, 2013 3:47 pm    Post subject: Reply to: Multiple GDG versions to a single file (FIFO layou
Reply with quote

Can you demonstrate that please?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Sat Sep 14, 2013 7:01 pm    Post subject:
Reply with quote

Will there be a fixed number of generations to copy each day? If so, just write the JCL to copy the concatenated generations, oldest first, to your output data set.

If the number of generations can vary by day, then you will need to write a program in the language of your choice. Your daily job will consist of an IDCAMS step to list the generations; followed by executing the program which will parse the LISTCAT output and pull out the generations that exist. The program output will be the JCL you want to execute (again with the concatenated generations to be copied) and can be sent directly to the internal reader.
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 Sep 16, 2013 2:14 pm    Post subject:
Reply with quote

CSI will list them in the correct order.

Look at SYS1.SAMPLIB(IGGCSIRX)
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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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