The resulting format of the record generated by the WRITE function and referenced by the SORTIN DD statement is:
keyVar1 |
keyVar2 |
keyVar3 |
... |
fileId |
var1 |
var2 |
var3 |
... |
where
<------ Sum of all key lengths -----> |
1 byte |
<----- Sum of all lengths -----> |
Note: The WRITE function requires a preexisting work file referenced by the SORTIN DD statement. The LRECL (record length allocation parameter) for this work file must be equal to or greater than the sum of all keyLen values + len values + 1 (as defined above).
Parent Topic |