Sorry.. Hopefully this will help.
Yes, everY column is enclosed with double quotes. Here's a few records from the file...
"RECD AAAAAAAAAA","","00000X","2011/02/13 07:27:18 ",".79 miles NNW of Prathersville, MO","At Columbia, MO","2011/02/13 07:27:59 "
"RECD AAAAAAAAAA","","00000X","2011/02/13 07:08:44 ","3.81 miles E of Guasti, CA","5.49 miles WSW of Fontana, CA","2011/02/13 07:09:09 "
"RECD AAAAAA ","","00000X","2011/02/13 07:08:51 ","3.82 miles NNW of Glen Avon, CA","5.46 miles WSW of Fontana, CA","2011/02/13 07:09:14 "
"RECD AAAA ","","00000X","2011/02/14 06:56:22 ","1.44 miles WNW of Sky Lake, FL","5.97 miles SW of Orlando, FL","2011/02/14 06:57:03 "
"RECD AAAAAAAAAA","","00000X","2011/02/13 07:22:09 ","4.27 miles SSW of Cornersville, TN","43.99 miles NNW of Huntsville, AL","2011/02/13 07:22:34 "
"RECD AAAAAAAAAA","","00000X","2011/02/14 06:20:44 ","3.79 miles E of Guasti, CA","5.49 miles WSW of Fontana, CA","2011/02/14 06:21:20 "
"RECD AAAAAAA ","","00000x","2007/10/27 06:33:30 ","UNKNOWN","UNKNOWN","UNKNOWN "
I'd like the output to not have the enclosed quotes. When the a field is not used, it has double quotes. For example, the 2nd field is not used.
The output would look like...
RECD AAAAAAAAAA2011/02/13 07:27:59At Columbia, MO
RECD AAAAAAAAAA2011/02/13 07:09:095.49 miles WSW of Fontana, CA
RECD AAAAAAAAAA2011/02/13 07:09:145.46 miles WSW of Fontana, CA
RECD AAAAAAAAAA2011/02/14 06:57:035.97 miles SW of Orlando, FL
RECD AAAAAAAAAA2011/02/13 07:22:3443.99 miles NNW of Huntsville, AL
RECD AAAAAAAAAA2011/02/14 06:21:205.49 miles WSW of Fontana, CA
RECD AAAAAAA UNKNOWN UNKNOWN
This is what I came up with so far.. It works (sorta), BUT it leaves a trailing double quote at the end..
//SYSIN DD *
OPTION COPY
INCLUDE COND=(1,6,CH,EQ,C'"XTRA ')
OUTFIL FNAMES=REFORMAT
INREC PARSE=(%00=(ENDBEFR=C',',PAIR=QUOTE,FIXLEN=17),
%=(ENDBEFR=C',',PAIR=QUOTE),
%=(ENDBEFR=C',',PAIR=QUOTE),
%=(ENDBEFR=C',',PAIR=QUOTE),
%=(ENDBEFR=C',',PAIR=QUOTE),
%05=(ENDBEFR=C',',PAIR=QUOTE,FIXLEN=52),
%06=(ENDBEFR=C',',PAIR=QUOTE,FIXLEN=22)),
BUILD=(%00,%06,%05)
OUTREC BUILD=(2,15,19,19,41,50)
The output from that is...
****** *********************************** Top of Data ************************************
- - - - - - - - - - - - - - - - - - - - - - - 14 Line(s) not Displayed
000015 RECD AAAAAAAAAA2011/02/13 07:27:59At Columbia, MO"
000016 RECD AAAAAAAAAA2011/02/13 07:09:095.49 miles WSW of Fontana, CA"
000017 RECD AAAAAA 2011/02/13 07:09:145.46 miles WSW of Fontana, CA"
000018 RECD AAAA 2011/02/14 06:57:035.97 miles SW of Orlando, FL"
000019 RECD AAAAAAAAAA2011/02/13 07:22:3443.99 miles NNW of Huntsville, AL"
000020 RECD AAAAAAAAAA2011/02/14 06:21:205.49 miles WSW of Fontana, CA"
000021 RECD AAAAAAA UNKNOWN UNKNOWN"
- - - - - - - - - - - - - - - - - - - - - - - 58 Line(s) not Displayed
****** ********************************** Bottom of Data **********************************