IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

WER224A SORTIN NOT DEFINED


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Tue Oct 07, 2008 7:20 pm
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
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Oct 07, 2008 7:25 pm
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
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Oct 07, 2008 7:30 pm
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: 210
Location: St Katherine's Dock London

PostPosted: Tue Oct 07, 2008 7:38 pm
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
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Oct 07, 2008 7:53 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
No new posts Dynamic Sortin DD cards SYNCSORT 8
No new posts using based or defined variables PL/I & Assembler 2
No new posts Call DB2 user defined function from C... DB2 5
No new posts In which program the FILE CONTROL wil... COBOL Programming 2
Search our Forums:

Back to Top