MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Select Statement Error in SYNCTOOL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
avid_lrner
Beginner


Joined: 15 Apr 2005
Posts: 21
Topics: 9

PostPosted: Wed Jun 15, 2005 1:57 am    Post subject: Select Statement Error in SYNCTOOL Reply with quote

Hi,

Trying to fetch all the duplicates in a file into a single file.

Tried the following code:

Code:

//STEP01   EXEC PGM=SYNCTOOL                                 
//TOOLMSG   DD  SYSOUT=*                                     
//SSMSG     DD  SYSOUT=*                                     
//IN1      DD DSN=xxx.yyy.zzz,DISP=SHR
//OUT     DD DSN=xxx.yyy.zzz.alldup,
//            DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,             
//            DCB=(LRECL=30,RECFM=FB),                       
//            SPACE=(TRK,(1,1),RLSE)                         
//TOOLIN DD *                                                 
   SELECT FROM(IN1) TO(OUT) ON(1,10,CH,15,2,CH) ALLDUPS       
/*                                                           


am getting the following error messages:

SYT000I SYNCTOOL RELEASE 1.4D - COPYRIGHT 2003 SYNCSORT INC.
SYT001I INITIAL PROCESSING MODE IS "STOP"
SYT002I "TOOLIN" INTERFACE BEING USED

SELECT FROM(IN1) TO(OUT) ON(1,10,CH,15,2,CH) ALLDUPS
SYT068E INVALID "ON" OPERAND
SYT030I OPERATION COMPLETED WITH RETURN CODE 12

SYT015I PROCESSING MODE CHANGED FROM "STOP" TO "SCAN" DUE TO OPERATION FAILURE

SYT004I SYNCTOOL PROCESSING COMPLETED WITH RETURN CODE 12


Can we sort based on more than one key???

regards,
avid_lrner.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Wed Jun 15, 2005 5:29 am    Post subject: Reply with quote

avid_lrner,

You need to specify a seperate ON parm for every key field you are checking. Change your toolin statement to the following .

Code:

SELECT FROM(IN1) TO(OUT) ON(1,10,CH) ON(15,2,CH) ALLDUPS


If you have more ON fields you can split the toolin statements into many lines but you need '-' as continuation

ex:
Code:

SELECT FROM(IN1) TO(OUT) -
       ON(1,10,CH) -
       ON(15,2,CH) ALLDUPS


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
avid_lrner
Beginner


Joined: 15 Apr 2005
Posts: 21
Topics: 9

PostPosted: Wed Jun 15, 2005 6:17 am    Post subject: SYNCTOOL related query Reply with quote

Kolusu,

The CODE works fine.

Thanks for your timely guidance.

regards,
avid_lrner.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group