Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 & VSAM
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    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

dbzTHEdinosauer

Global Moderator


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

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
Arun Raj

Moderator


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

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: 210
Location: St Katherine's Dock 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
Arun Raj

Moderator


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

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am
No new posts Update the Sortout file with record c... karthik_sripal SYNCSORT 8 Tue May 17, 2016 8:52 pm
No new posts Referback the DCB of SORTIN while usi... venksiv CLIST & REXX 7 Tue Mar 15, 2016 5:47 pm
No new posts How to know in which cics region pro... rikdeb CICS 3 Fri Mar 27, 2015 12:40 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us