View previous topic :: View next topic
|
Author |
Message |
ouintonfloury
New User
Joined: 27 Dec 2010 Posts: 2 Location: Bangalore,India
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Isn't FIFO, oldest generation first, simply what you want? What problem are you havin? |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
First problem - he wants versions not generations |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Nic Clouston wrote: |
First problem - he wants versions not generations |
Well, she said "versions" once but "generation" twice; as Meat Loaf said, "Two out of three ain't bad" |
|
Back to top |
|
|
ouintonfloury
New User
Joined: 27 Dec 2010 Posts: 2 Location: Bangalore,India
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Can you demonstrate that please? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
CSI will list them in the correct order.
Look at SYS1.SAMPLIB(IGGCSIRX) |
|
Back to top |
|
|
|