Copy Using SYNCSORT



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

Copy Using SYNCSORT

Postby Bhairnr » Wed Aug 11, 2010 12:22 pm

Hi All
I have below requirement
Can anybody help me in this regards

I have to copy data from input file position 5 length 15
to output file position 9 length 15 and
moves 0000 to output file position 5 length 4
and copy data from 24 position in input file unchanged
to output file

Note :- Header and trailer should be copy
as they are in input file and can be recognized
by first character 'H' or 'T'

Thanks
Bhairon
Bhairnr
 
Posts: 1
Joined: Wed Aug 11, 2010 12:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Copy Using SYNCSORT

Postby dick scherrer » Wed Aug 11, 2010 11:47 pm

Hello and welcome to the forum,

Post some sample input data and the output you want from that input.

Mention the recfm and lrecl of the files.

Describe any other processing rules you want used processing the input to the output.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Copy Using SYNCSORT

Postby Alissa Margulies » Wed Aug 18, 2010 8:25 pm

Here is an example that may help you.
//SORT1 EXEC PGM=SORT                         
//SORTIN  DD *                                 
H                                             
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ           
T                                             
//SORTOUT DD SYSOUT=*                         
//SYSOUT  DD SYSOUT=*                           
//SYSIN   DD *                                   
  INREC IFTHEN=(WHEN=(1,1,CH,NE,L(C'H',C'T')),
    BUILD=(5:C'0000',9:5,15,24:24,1))         
  SORT FIELDS=COPY   
/*                         

The output produced by the step above is as follows:
H                       
    0000456789ABCDEFGHIN
T                       

If these are not your requirements, then please provide all the information that Dick had previously requested so that we can better assist you.

Regards,
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


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post