MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RDW content

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 621
Topics: 173
Location: Stockholm, Sweden

PostPosted: Wed Mar 25, 2020 3:01 am    Post subject: RDW content Reply with quote

I don't have access to a mainframe at the moment, otherwise I'd test this myself using DFSORT.

I understand the concept of the RDW for variable files. I'm writing/debugging code on the PC using WinEdit and GNUCobol. My program creates a VB file and I'm wondering about the actual content of the RDW.

Put simply. If the record being written is 10 bytes long. does the RDW contain '000A0000'x (10 for the actual record length), or does it contain '000E0000'x (10 for the actual length + 4 for the length of the RDW)?
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
Robert Sample
Beginner


Joined: 15 Dec 2009
Posts: 12
Topics: 0
Location: Atlanta

PostPosted: Wed Mar 25, 2020 7:57 am    Post subject: Reply with quote

You don't need access to a mainframe to find this information. From https://www.ibm.com/support/knowledgecenter/zosbasics/com.ibm.zos.zconcepts/zconcepts_159.htm there is (emphasis added by me):
Quote:
V (Variable)
This format has one logical record as one physical block. A variable-length logical record consists of a record descriptor word (RDW) followed by the data. The record descriptor word is a 4-byte field describing the record. The first 2 bytes contain the length of the logical record (including the 4-byte RDW). The length can be from 4 to 32,760 bytes. All bits of the third and fourth bytes must be 0, because other values are used for spanned records. This format is seldom used.
Back to top
View user's profile Send private message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 621
Topics: 173
Location: Stockholm, Sweden

PostPosted: Wed Mar 25, 2020 8:54 am    Post subject: Reply with quote

Thanks Robert. I looked for it, but not as well as you did Very Happy
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group