OK, I think the discussion forked about 3 different ways, based upon a 
misunderstanding.

Here is a simple input record, with 6 groups of 3 bytes.

AAABBBCCCDDDEEEFFF

Here is what I want out of it, 6 rows of 3 bytes.

AAA
BBB
CCC
DDD
EEE
FFF


I tested the following solution using both a dataset and SYSOUT, specifying the 
output DCB as LRECL=82, or simply letting SyncSort determine the DCB record 
length.  All of my tests worked with the following SyncSort commands.

OPTION COPY
OUTFIL FNAMES=PIECES,OUTREC=(0001,0082,/,                             +
                             0083,0082,/,                             +
                             0165,0082,/,                             +
                             0247,0082,/,                             +
                             0329,0082,/,                             +
                             0411,0082,/,                             +
                             0493,0082,/,                             +
                             0575,0082,/,                             +
                             0657,0082,/,                             +
                             0739,0082,/,                             +
                             0821,0082,/,                             +
                             0903,0082,/,                             +
                             0985,0082,/,                             +
                             1067,0082,/,                             +
                             1149,0082,/,                             +
                             1231,0082,/,                             +
                             1313,0082,/,                             +
                             1395,0082,/,                             +
                             1477,0082,/,                             +
                             1559,0082,/,                             +
                             1641,0082,/,                             +
                             1723,0082)

The problem with the commands in my original post was that the second operand 
was the ending column, when it should have been the length. (82).

Thanks everyone for all of your suggestions.

If you work for SyncSort, there is a case for this, probably closed by now.

Cheers

Gary

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to