View previous topic :: View next topic
|
Author |
Message |
rajat_gupta
New User
Joined: 05 Apr 2007 Posts: 15 Location: india
|
|
|
|
Hi Folks,
Has anyone got any idea about how to get LRECL and BLKSZ information of all the generations present for a given GDG base in REXX.
Please add your comments. |
|
Back to top |
|
|
cpuhawg
Active User
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
Are the GDGs on disk or tape?
There are methods of getting this information from a disk GDG using REXX, but a tape's LRECL and BLKSIZE are stored only on the tape and in the tape management system. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And why would they vary from generation to generation ? |
|
Back to top |
|
|
rajat_gupta
New User
Joined: 05 Apr 2007 Posts: 15 Location: india
|
|
|
|
The LRECL of different generations of a GDG can be different. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Yes, I know that they can be different, but I asked why they would vary.
In general practice, 99.9% of the time, the physical attributes of GDG's do not vary from generation to generation.
If you could explain why you need this information then maybe we can come up with a few helpful hints to resolve your problem. |
|
Back to top |
|
|
rajat_gupta
New User
Joined: 05 Apr 2007 Posts: 15 Location: india
|
|
|
|
Hi expat
Ya I agree that most of the times it would not vary.
Actually whenever I am using SORTIN in my JCL with GDG base name as input, then it merges all the generations present for that GDG base and allocates it to the SORTOUT dataset.but sometimes my job is getting ABENDED beacause if any of the generation is having a different LRECL then it would not be possible to merge all those generations. to resolve that manually we need to check each generation's LRECL's one by one which is time consuming, thats why I tried to create a program in REXX to get all information in one shot. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Take a look at the LISTDSI function. This should return the values you want from each generation. It certainly works for DASD datasets, not sure about tape though. |
|
Back to top |
|
|
rajat_gupta
New User
Joined: 05 Apr 2007 Posts: 15 Location: india
|
|
|
|
Thanks expat |
|
Back to top |
|
|
|