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

Multiple GDG versions to a single file (FIFO layout)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1788
Location: Bloomington, IL

PostPosted: Fri Sep 13, 2013 8:57 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7310
Location: Inside the Matrix

PostPosted: Fri Sep 13, 2013 10:39 pm
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: 2455
Location: Hampshire, UK

PostPosted: Sat Sep 14, 2013 12:39 am
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: 1788
Location: Bloomington, IL

PostPosted: Sat Sep 14, 2013 12:51 am
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7310
Location: Inside the Matrix

PostPosted: Sat Sep 14, 2013 3:47 pm
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: 8573
Location: Dubuque, Iowa, USA

PostPosted: Sat Sep 14, 2013 7:01 pm
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: 8797
Location: Welsh Wales

PostPosted: Mon Sep 16, 2013 2:14 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to submit multiple jobs with parm... JCL & VSAM 3
No new posts How to submit multiple jobs with parm... Mainframe Jobs 0
No new posts Read UTF-8 file in Cobol COBOL Programming 5
No new posts rexx pgm to create multiple ps file IBM Tools 7
No new posts Remove commas from specific positions... DFSORT/ICETOOL 10
Search our Forums:

Back to Top