Page 1 of 1

Copy VSAM to VSAM via SYNCSORT.........

PostPosted: Tue Dec 06, 2011 3:26 am
by rmd3003
Hi there. We are using SYNCSORT and I already tested step below. It works but I'm not sure if I understand if I need to code AMP=('AMORG','BUFND=XX') ?
Also, Am I missing something here?

//STEP1    EXEC PGM=SYNCSORT,REGION=8M,TIME=1439,           
//         PARM='DYNALLOC=SYSDA,VSCORET=2M'
//SORTIN   DD DSN=KSDS.INPUT.FILE.OLD,DISP=SHR     
//         AMP=('AMORG','BUFND=20')             
//SORTOUT  DD DSN=KSDS.OUTPUT.FILE.NEW,DISP=SHR
//         AMP=('AMORG','BUFND=20')                     
//SORTMSG  DD SYSOUT=*                                 
//SYSOUT   DD SYSOUT=*                                 
//SYSUDUMP DD SYSOUT=*                                 
//*                                                     
//SYSIN    DD *                                       
    OPTION COPY                                         
    INCLUDE COND=(5,4,CH,GT,C'0000')         


Want to note that both input and output files are online (region is down during copy) and has over 100 million records. This is DEFINE for both (the same)......

DEFINE CLUSTER                                      -
      (NAME(KSDS.OUTPUT.FILE.NEW)                   -
       SHAREOPTIONS(2 3)                            -
       INDEXED                                      -
       NOIMBED                                      -
       NOREPLICATE                                  -
       NOREUSE                                      -
       DATACLAS(EXTVSAMC)                           -
       RECORDSIZE(100 500)                          -
       FREESPACE(50 30)                             -
       KEY(28 0))                                   -
      DATA                                          -
      (NAME(KSDS.OUTPUT.FILE.NEW.DATA)              -
       CYL(4000 2500)                               -
       VOLUMES(* * * * * *)                         -
       CISZ(18432))                                 -
      INDEX                                         -
      (NAME(KSDS.OUTPUT.FILE.NEW.INDEX)             -
       CYL(750 150)                                 -
       VOLUMES(* * )                                -

Re: Copy VSAM to VSAM via SYNCSORT.........

PostPosted: Tue Dec 06, 2011 4:21 am
by BillyBoyo
Have you abandoned the question in the Expert's forum, decided to "bufno" it, and for some reason ask here... what?

Re: Copy VSAM to VSAM via SYNCSORT.........

PostPosted: Tue Dec 06, 2011 4:26 am
by Alissa Margulies
You can remove the PARM statement. DYNALLOC is not needed for a COPY step, and VSCORET appears to be coded improperly. VSCORET=6M is typically the default. Why would you limit it to 2M? Did you mean to specify VSCORE=2M?