Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 2 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us