Re: Different behavior when SYSIN's content is inside a data
Posted: Tue Oct 29, 2013 7:37 pm
Now, with your original, the problem was this. The 45, which gives you the incompatible LRECL message, is the length of the longest output record. Your output is fixed-length, so all the output records are made the length of the longest record.
You then simply change those to 80-byte records. The records are "padded", but I'm not sure with exactly what. It should be spaces, most likely, but I don't have SyncSort and don't know what it does with a COPY that simple.
When you Edit the file does it look OK? No "unrecognisable characters"?
If, on one of your multiple output records in the first step you put ,80:X before one of the ,/,s then all your output should be 80 bytes long. No need for the second step.
You then simply change those to 80-byte records. The records are "padded", but I'm not sure with exactly what. It should be spaces, most likely, but I don't have SyncSort and don't know what it does with a COPY that simple.
When you Edit the file does it look OK? No "unrecognisable characters"?
If, on one of your multiple output records in the first step you put ,80:X before one of the ,/,s then all your output should be 80 bytes long. No need for the second step.