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

Is there any way to find the record length through JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gigs

New User


Joined: 08 Aug 2005
Posts: 27
Location: USA

PostPosted: Wed Sep 28, 2005 5:46 pm
Reply with quote

Is there any way to find the record length of a sequential or VSAM file through JCL ?
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Wed Sep 28, 2005 6:27 pm
Reply with quote

Well, for VSAM there's always IDCAMS LISTCAT. For QSAM, there's the TSO LISTDS command.

The best thing I can think of that works for either is a null SORT copy:

Code:

//STEP0001 EXEC PGM=SORT                                 
//SORTIN   DD   DISP=SHR,DSN=DATASET-TO-CHECK             
//SORTOUT  DD   DISP=(NEW,PASS),UNIT=VIO                 
//SYSOUT   DD   SYSOUT=*                                 
//SYSIN    DD   *                                         
 OPTION COPY                                             
 OMIT COND=ALL                                           
/*                                                       
//*                                                       


and then using the contents of the ICE090I message:

Code:

ICE090I 0 OUTPUT LRECL = 80, BLKSIZE = 27920, TYPE = FB   (SDB) 
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 Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top