Author: Virendra Shambharkar
Subject: Reply to: Count Trailing Spaces in variable string after a constant S
Posted: Mon Feb 06, 2017 8:56 am (GMT 5.5)
Below are the sort cards one of our colleagues suggested and it works. We tested it on a 900 byte string
_________________
Virendra Shambharkar
Subject: Reply to: Count Trailing Spaces in variable string after a constant S
Posted: Mon Feb 06, 2017 8:56 am (GMT 5.5)
Below are the sort cards one of our colleagues suggested and it works. We tested it on a 900 byte string
Code: |
SORT FIELDS=COPY INREC PARSE=(%00=(ENDAT=C'AAAAAAA',FIXLEN=900)), BUILD=(%00) OUTFIL INCLUDE=(1,900,SS,EQ,C'AAAAAAA'),FTOV,VLTRIM=C' ' SORT FIELDS=COPY OUTFIL VTOF,BUILD=(1,2,BI,SUB,+11,EDIT=(IIIIIT),30:X), REMOVECC |
_________________
Virendra Shambharkar