uweoswald wrote:

>To make it clearer: For example a RDW (first 4 Bytes) of 33.14.01.00. OK, 
>x'3314' tells me that the record is 13 076 Bytes long,

Correct. A$$uming you write it just as-is. 


> but how to deal with the remaining part the '0100'? 

According to book, these 2 bytes should be zeroes for NON-spanned records. 
Otherwise it is used for spanned records.

Look in 'Variable-Length Record Formats' in book 'DFSMS Using Data Sets' for 
more details. or Chapter 20 as Shane suggested.


In SMF Book this quote:

"The header section must include the record descriptor word (RDW). The RDW is a 
4-byte field that must introduce each SMF record when it is written to the SMF 
data set by the SMFWTM macro instruction. The first two bytes of the RDW must 
contain the length of the logical record (including the four bytes of the RDW). 
The second two bytes are used for variable blocked
spanned records; that is, records that contain more than 32,756 bytes. This 
field (the second two bytes) is set to zero if the record is not spanned. The 
remainder of the record immediately follows the RDW."


>Does this mean that the next 256 Bytes after the first 13.076 Bytes belong 
>together or how is this calculated?!

No, see above quote. You get the next RDW after that 13076 bytes. But you don't 
read in the RDW, you let the system use the RDW to dump the record in that many 
bytes in your memory you reserved for that purpose.

Schematic of NON spanned record:

<RDW byte 1+2><RDW 3+4><record with length in bytes specified by previous 
RDW><RDW of next record>< ... etc ... >

For spanned records, things are getting interesting and somewhat difficult to 
explain. I'm not going to do that here.


>I just want to understand „how“.

Why? What are you trying to achieve. I'm asking because you can't use RDW 
directly with standard methods.

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to