Copy all records but overlay only one record



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

Copy all records but overlay only one record

Postby ranga_subham » Fri Oct 24, 2008 2:32 pm

Hi,

I have a file with many records. I need to overlay only one record but rest of the records also should be copied to output file along with overlayid record.

For example:

ABCD1111
BCDE2222
CDEF3333
CDEF4444


Output:

ABCD1111
BCDE2222
CDEF3333
DEFG4444


I am using below job but getting only last record into o/p file.

//SYSIN    DD *                                                 
 OPTION COPY                                                   
 INCLUDE COND=(5,1,ZD,EQ,4)                                     
 OUTFIL OVERLAY=(1:C'DEFG')                                     
/*                                                             


Thanks.
ranga_subham
 
Posts: 279
Joined: Fri Jul 18, 2008 7:46 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Copy all records but overlay only one record

Postby Alissa Margulies » Fri Oct 24, 2008 11:54 pm

Try this:
//SYSIN    DD *                                                 
  SORT FIELDS=COPY                                                   
  OUTREC IFTHEN=(WHEN=(5,1,ZD,EQ,4),OVERLAY=(1:C'DEFG'))                                   
/*   
Alissa Margulies
Syncsort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Alissa Margulies
Global moderator
 
Posts: 369
Joined: Tue Feb 26, 2008 11:15 pm
Location: USA
Has thanked: 1 time
Been thanked: 3 times

Re: Copy all records but overlay only one record

Postby ranga_subham » Sat Oct 25, 2008 8:48 am

Thank you Alissa.......... :D
ranga_subham
 
Posts: 279
Joined: Fri Jul 18, 2008 7:46 pm
Has thanked: 0 time
Been thanked: 1 time


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post