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

Actual Record length in case RECFM=VB


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

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Mon Mar 29, 2010 10:41 am
Reply with quote

For record format as variable block [VB], first 4 byte is used to store the actual record length.

Please tell me how to see that value as it appears in other format.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 29, 2010 10:48 am
Reply with quote

Hello,

Quote:
first 4 byte is used to store the actual record length
Not quite. There are 2 lengths - the Block Descriptor and the Record Descriptor.

Quote:
Please tell me how to see that value as it appears in other format.
What does this mean? Please clarify.
Back to top
View user's profile Send private message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Mon Mar 29, 2010 10:59 am
Reply with quote

Hi

I want to know the each actual record length, Which i think will be kept in Record descriptor as You mentioned. But it is not in display format i think.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 29, 2010 11:48 am
Reply with quote

why should anybody retype what is explained better in the manuals ?
DFSMS Using Data Sets
for the whole shebang

a quick and dirty search of the manual
Variable-Length Record Formats
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon Mar 29, 2010 7:11 pm
Reply with quote

Susanta wrote:
But it is not in display format i think.
True. If you view the records in ISPF the RDW portion of the record is not shown. If you HEX ON you will see the length of the data portion of each record not counting the 4 byte RDW.

Does this help?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 29, 2010 7:52 pm
Reply with quote

You may also use a SORT JCL like:
Code:
//SHOWV   EXEC PGM=SORT                                                 
//SYSOUT  DD   SYSOUT=*                                                 
//SORTIN  DD   DSN=...hlq.vb.file,DISP=SHR                       
//SORTOUT DD   SYSOUT=*                                                 
//SYSIN   DD    *                                                       
  OPTION COPY                                                           
  OUTREC BUILD=(1,4,1,2,BI,C'|',5)                                     
/*                                                                     
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 29, 2010 7:56 pm
Reply with quote

or you may redefine it as a "U" file and display it with HEX ON, I've not tried it, though.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Mar 29, 2010 8:06 pm
Reply with quote

Anuj Dhawan wrote:
or you may redefine it as a "U" file and display it with HEX ON, I've not tried it, though.
If you did that you would see all the record descripters, all the records and the block descripter, LLBBllbb----record----llbb---record---- etc...
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 29, 2010 8:16 pm
Reply with quote

Thanks CG - I'll just check it once I get to log-in tothe mainframes,

Have a good one, icon_smile.gif
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 COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top