View previous topic :: View next topic
|
Author |
Message |
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
Hi I am trying to merge two VSAM files into a PS file using:
Code: |
//STEP2 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN01 DD DSN=TAU.SA.SVMXCH1.EXCHANGE.RATE.KSDS,DISP=SHR
//SORTIN02 DD DSN=TCA.SA.SVMXCH1.EXCHANGE.RATE.KSDS,DISP=SHR
//SORTOUT DD DSN=TGE.RKSORT.SAMF,
// DISP=(NEW,KEEP,KEEP),
// DCB=(RECFM=FB,LRECL=44,BLKSIZE=0),
// SPACE=(CYL,(50,10),RLSE)
//SYSIN DD *
OPTION COPY
/*
|
But getting this error.. job abends with RC=16
Code: |
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 4E9BE, MODEL 2096 S04 LICEN
SYSIN :
OPTION COPY
WER276B SYSDIAG= 47097, 180726, 180726, 622913
WER164B 6,916K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 1M BYTES USED
WER224A SORTIN NOT DEFINED
|
as far as i can discern, the KSDS files are there on the volumes:
Code: |
TAU.SA.SVMXCH1.EXCHANGE.RATE.KSDS *VSAM*
TAU.SA.SVMXCH1.EXCHANGE.RATE.KSDS.DATA MDOP65+
TAU.SA.SVMXCH1.EXCHANGE.RATE.KSDS.INDEX MDOP65+
TCA.SA.SVMXCH1.EXCHANGE.RATE.KSDS *VSAM*
TCA.SA.SVMXCH1.EXCHANGE.RATE.KSDS.D MDOP53
TCA.SA.SVMXCH1.EXCHANGE.RATE.KSDS.I MDOP53
|
can you please guide what can be wrong! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
WER224A SORTIN NOT DEFINED,
you are using SORTIN01 and SORTIN02 as input.
you have to tell syncsort (sorry, i have no idea how)
that your input is not found with the DD REFERENCE SORTIN |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hello,
I believe you need to use as AFAIK, OPTION COPY expects a SORTIN
Code: |
//SYSIN DD *
MERGE FIELDS=COPY |
|
|
Back to top |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
arcvns wrote: |
Hello,
I believe you need to use as AFAIK, OPTION COPY expects a SORTIN
Code: |
//SYSIN DD *
MERGE FIELDS=COPY |
|
I tried MERGE FIELDS=COPY as well, but the error remains same.
But, when i tried with some field positions like MERGE FIELDS=(1,11,CH,A)
it worked fine! I don't know how!
Is there any restriction with the COPY option? |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hi genesis786,
Syncsort Manual wrote: |
SORTINnn and SORTINn DD statements are used to define the input to a merge application. (Use the SORTIN DD statement to define the data set to be sorted or copied.)SORTINnn or SORTINn DD statements are required for all merge applications.
MERGE FIELDS=COPY: The SORTIN DD statement defines the input to be copied. (SORTINnn DD statements are not processed when FIELDS=COPY is specified.) |
|
|
Back to top |
|
|
|