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

How to get LRECL and BLKSZ of all the generations in a GDG


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Wed Apr 11, 2007 5:57 pm
Reply with quote

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
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Wed Apr 11, 2007 6:06 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Apr 11, 2007 6:21 pm
Reply with quote

And why would they vary from generation to generation ?
Back to top
View user's profile Send private message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Thu Apr 12, 2007 12:13 pm
Reply with quote

The LRECL of different generations of a GDG can be different.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 12, 2007 12:47 pm
Reply with quote

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
View user's profile Send private message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Fri Apr 13, 2007 12:18 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Apr 13, 2007 12:26 pm
Reply with quote

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
View user's profile Send private message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Fri Apr 13, 2007 4:47 pm
Reply with quote

Thanks expat
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 7
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts Rexx to list generations of GDGs and ... CLIST & REXX 3
No new posts A command to change LRECL of an exist... JCL & VSAM 7
No new posts Puzzled about output LRECL DFSORT/ICETOOL 4
Search our Forums:

Back to Top