View previous topic :: View next topic
|
Author |
Message |
Ambili S
Active User
Joined: 06 Sep 2007 Posts: 112 Location: India
|
|
|
|
Hi
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 ?
Thanks |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 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:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FBA/81)
//SORTOUT DD RECFM=FB,DSN=... output file (FB/80)
// RECFM=FB
//SYSIN DD *
OPTION COPY
OUTREC BUILD=(2,80)
/*
|
|
|
Back to top |
|
|
Ambili S
Active User
Joined: 06 Sep 2007 Posts: 112 Location: India
|
|
|
|
Hi Frank
Thanks for clarifyng my doubt. |
|
Back to top |
|
|
|