> -----Original Message-----
> From: IBM Mainframe Discussion List On Behalf Of Paul Ip
> 
> Hi all,
> 
> When using RDW option, it adds 4 bytes at the beginning of 
> each record indicating the 'length' of current record. For 
> example, if the current record has a LRECL=12, then the 4 
> bytes RDW contains 12+4 = 16 (i.e. x'0F') so the length field 
> in RDW actually includes the length of RDW itself.

That's correct.  BTW, x'0F' is 15; 16 is x'10'.

> I am wondering if there is a way for me to control the length 
> field in RDW that DOESN'T include the length of RDW (4 byets) 
> itself ? That is, for my previous example, I want to have the 
> RDW contains x'0B' instead of x'0F'....

In V(B) records the RDW (Record Descriptor Word) is a part of the
record, so its length is a part of the record length.  You can actually
put any value in there from 5 (one data byte) through 32756 (32752 data
bytes), but for the example you cite, putting x'0B' in the correct
location within the RDW will give you an 11-byte record containing only
7 bytes of "real data".

    -jc-

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to