Author: sergeyken
Subject: Re: SQZ pipe delimited file with 1 column varying length
Posted: Wed Mar 15, 2017 10:52 pm (GMT 5.5)
SORT solution works as well
_________________
Tyrannosaurus-REXX
Subject: Re: SQZ pipe delimited file with 1 column varying length
Posted: Wed Mar 15, 2017 10:52 pm (GMT 5.5)
Rick Silvers wrote: | ||
|
SORT solution works as well
Code: |
INREC PARSE=(%=(ABSPOS=5,ENDAT=C'|'), %=(ENDAT=C'|'), %1=(ENDBEFR=C'|',FIXLEN=400), %2=(SUBPOS=1,ENDBEFR=X'00',FIXLEN=400)), BUILD=(1,4, RDW 5,18, two fixed fields %1,SQZ=(VL,MID=C' '), squeezed field %2,JFY=(VL)) last fields shifted left SORT FIELDS=COPY END |
_________________
Tyrannosaurus-REXX