Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
LRECL = Max. record length + 4 bytesfor Var. length rec.?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: LRECL = Max. record length + 4 bytesfor Var. length rec.?
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: 151
Location: Tokyo, Japan

PostPosted: Fri Dec 26, 2003 12:31 pm    Post subject:
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    Post subject:
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: 151
Location: Tokyo, Japan

PostPosted: Tue Dec 30, 2003 6:38 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us