I have a report file where all the fields are separated by multiple spaces, except for the name which has
a single space and the records have a carriage control at the start
I need to create a CSV file from this file, for example this could be a record:
0 6577676 Frank Jaegar 10/02/79 03
I want the records to be formatted as follows, excluding the carriage control:
6577676,Frank Jaegar,10/02/79,03
and have tried the following DFSORT parameters but the name field also gets a comma in-between the two names:
OPTION COPY
OUTFIL FNAMES=CSV,
BUILD=(2,33,SQZ=(SHIFT=LEFT,MID=C',')
How do I exclude the name field from a comma, is there any other way to exclude the carriage control besides starting from col 2.
Can I parse a variable record file this way without using PARSE.