IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

can REMOVECC be used for copying


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Fri Sep 05, 2008 2:34 pm
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
Frank Yaeger

DFSORT Developer


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

PostPosted: Fri Sep 05, 2008 8:56 pm
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

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Mon Sep 08, 2008 8:53 am
Reply with quote

Hi Frank

Thanks for clarifyng my doubt.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Copying GDG version(all/few) from pro... CLIST & REXX 13
No new posts Copying large number of datasets to m... JCL & VSAM 17
No new posts Copying data from prev record using SORT SYNCSORT 19
No new posts Copying Db2 BSDS and logs to another ... JCL & VSAM 11
Search our Forums:

Back to Top