Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
can REMOVECC be used for copying

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
Ambili S

New User


Joined: 06 Sep 2007
Posts: 20
Location: India

PostPosted: Fri Sep 05, 2008 2:34 pm    Post subject: can REMOVECC be used for copying
Reply with quote

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
View user's profile Send private message
References
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 4579
Location: San Jose, CA

PostPosted: Fri Sep 05, 2008 8:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Ambili S

New User


Joined: 06 Sep 2007
Posts: 20
Location: India

PostPosted: Mon Sep 08, 2008 8:53 am    Post subject: Reply to: can REMOVECC be used for copying
Reply with quote

Hi Frank

Thanks for clarifyng my doubt.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1