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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to get LRECL and BLKSZ of all the generations in a GDG
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    Post subject: Re: How to get LRECL and BLKSZ of all the generations in a
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: 8593
Location: Back in jolly old England

PostPosted: Wed Apr 11, 2007 6:21 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 12, 2007 12:47 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 13, 2007 12:26 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts WER247A incompatible lrecl Danielle.Filteau SYNCSORT 8 Tue May 02, 2017 4:04 am
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm
No new posts Compare each GDG Generations to other... Ayyappa1 JCL & VSAM 13 Tue Jun 28, 2016 1:48 pm
No new posts SORT Format should be RECFM=VB,LRECL=350 senthamizh SYNCSORT 8 Fri Jan 15, 2016 8:20 pm


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