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 WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 7
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
Search our Forums:

Back to Top