I came across this scenario while trying to sort a variable file of length 1500 including RDW. My requirement is to include 2 byte identifier at 75th position(rest all should be same as input) hence i used the below sort card for which i got OUTREC - SHORT RECORD error even the total length is 1500.
But i tried eliminating 81 from the above sort card(as in scenario 3) and the output has the record contents copied only till 76th position and rest all is filled with spaces which is valid. Can anyone explain what happened in 2nd scenario.
Attributes of my input and output files are as below..
RECFM=VB LERCL=1500 BLKSIZE=30000
It would look like you have a short record, even though you say you don't.
[If all records are 1500, why bother with a VB? Why blocksize of 30000, leaving space for a whole extra record on the track? 1580 bytes wasted per track, nearly 5% bigger dataset than necessary.] Edit: Expat knows better than I.
I guess, but haven't checked, that the "81" is doing from start position 81 to "end of record", so working with the shorter record(s) as well.
You can use the product to rip through the file extracting all records which are not 1500 and see what is left. There must be something.