Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
WER224A SORTIN NOT DEFINED

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 102
Location: London

PostPosted: Tue Oct 07, 2008 7:20 pm    Post subject: WER224A SORTIN NOT DEFINED
Reply with quote

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
View user's profile Send private message
References
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 1673
Location: germany

PostPosted: Tue Oct 07, 2008 7:25 pm    Post subject:
Reply with quote

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
View user's profile Send private message
arcvns

Senior Member


Joined: 17 Oct 2006
Posts: 997
Location: Chennai, India

PostPosted: Tue Oct 07, 2008 7:30 pm    Post subject:
Reply with quote

Hello,

I believe you need to use as AFAIK, OPTION COPY expects a SORTIN
Code:
//SYSIN DD *                                                 
  MERGE FIELDS=COPY 
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 102
Location: London

PostPosted: Tue Oct 07, 2008 7:38 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Moved: Tue Oct 07, 2008 7:38 pm by superk From DFSORT/ICETOOL to JCL
arcvns

Senior Member


Joined: 17 Oct 2006
Posts: 997
Location: Chennai, India

PostPosted: Tue Oct 07, 2008 7:53 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1