I've a Report file with RECFM = FBA , LRECL = 81. I want to copy this report file to a file with RECFM = FB and LRECL = 80. I was able to do this with OUTREC option . But I wanted to know if i can use REMOVECC syntax and copy the entire report to a file with RECFM = FB and LRECL = 80. If so , what should be the syntax ?
Joined: 15 Feb 2005 Posts: 4579 Location: San Jose, CA
No. REMOVECC is used to remove the carriage control characters that DFSORT adds to reports when you use one of OUTFIL's report parameters (HEADER1, TRAILER1, etc). It has nothing to do with removing carriage control characters from an existing file.
If you want to remove the carriage control characters from an FBA/81 file and create an FB/80 output file, you could use this DFSORT job: