Page 1 of 1

Trimming VB file

PostPosted: Tue Oct 09, 2012 8:21 am
by kiranp78
Hi,
I have a Variable length input file as mentioned below.
ABC*****
XYZAB************
123456**
I want to remove the padded * from the variable length records, so that the output would be
ABC
XYZAB
123456

I tried the below card but it gives error -
SORT FIELDS=COPY
OUTFIL VTRIM=C'*',OUTREC=(1:1,4,5:5)

Re: Trimming VB file

PostPosted: Tue Oct 09, 2012 11:14 am
by enrico-sorichetti
why not post also the error message ?