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 SORT for dynamic trailer record + CSV... DFSORT/ICETOOL 14
No new posts Selective extract of multi-record-typ... SYNCSORT 4
No new posts COBOL Table data to a flat file with ... COBOL Programming 8
No new posts Write a current record plus previous ... DFSORT/ICETOOL 4
No new posts Getting OUTREC - SHORT REC error for ... DFSORT/ICETOOL 12
Search our Forums:

Back to Top