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

LRECL = Max. record length + 4 bytesfor Var. length rec.?


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

New User


Joined: 24 Dec 2003
Posts: 2

PostPosted: Fri Dec 26, 2003 11:00 am
Reply with quote

Hi All,

In JCL, For fixed length records LRECL is set equal to record length.
For Variable lenght records LRECL is set equal to size of the largest record length plus 4 bytes.

Example: If the Largest record length is 150. LRECL value is 154.

Could you please clarify me, why the extra 4 bytes added?


Thanks
Suresh.
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Fri Dec 26, 2003 12:31 pm
Reply with quote

Hello Jsuresh,

This 4 byte space is allocated for Record Descriptor Word (RDW). This contain actual length of the record. icon_razz.gif

Regards,
Sandip.
Back to top
View user's profile Send private message
jsuresh_kumar

New User


Joined: 24 Dec 2003
Posts: 2

PostPosted: Fri Dec 26, 2003 2:51 pm
Reply with quote

Thank you sandip... icon_smile.gif
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Tue Dec 30, 2003 6:38 pm
Reply with quote

Actually RDW consists of 2 fields each having 2 bytes. The first field contains actual length including RDW in binary. The next field is reserved for future uses. Presently the second field contains zeroes.

Regards,
Sandip.
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 Copy only TEXT or String from a record SYNCSORT 4
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
No new posts how to complete the end of a record w... DFSORT/ICETOOL 2
No new posts Sort based on the record type DFSORT/ICETOOL 1
Search our Forums:

Back to Top