Hi,
Thank you Billy, it works. I did this:
//SORT12 EXEC PGM=SORT,REGION=2M,COND=(0,NE)
//SYSOUT DD SYSOUT=*
//SORTIN DD *
111AA
111 BBBB
222CC
222 AAAA
333DD
333 AAAA
//SORTOUT DD DSN=DES.IS.LR.BDK.JCJCL10.SORT12,
// DISP=(,CATLG,CATLG),
// SPACE=(TRK,(100,225),RLSE),
// DCB=(RECFM=FB,LRECL=20,BLKSIZE=0,DSORG=PS)
//SYSIN DD *
SORT FIELDS=COPY
INREC IFOUTLEN=20,
IFTHEN=(WHEN=GROUP,KEYBEGIN=(1,3),PUSH=(10:4,2)),
IFTHEN=(WHEN=INIT,
OVERLAY=(4:10,2))
I get this out:
111AA AA
111AABBBBAA
222CC CC
222CCAAAACC
333DD DD
333DDAAAADD
Now I only need filter the space in position 6.
Only one question more, how can I filter in the same step??, If I add INCLUDE COND=(6,1,CH,NE,C' ') to the code, of this way:
SORT FIELDS=COPY
INREC IFOUTLEN=20,
IFTHEN=(WHEN=GROUP,KEYBEGIN=(1,3),PUSH=(10:4,2)),
IFTHEN=(WHEN=INIT,
OVERLAY=(4:10,2))
INCLUDE COND=(6,1,CH,NE,C' ')
The out is the next
, anybody can help me with this doubt...