MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
avid_lrner Beginner Joined: 15 Apr 2005 Posts: 21 Topics: 9
Posted: Wed Jun 15, 2005 1:57 am Post subject: Select Statement Error in SYNCTOOL
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
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Wed Jun 15, 2005 5:29 am Post subject:
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
avid_lrner Beginner Joined: 15 Apr 2005 Posts: 21 Topics: 9
Posted: Wed Jun 15, 2005 6:17 am Post subject: SYNCTOOL related query
Kolusu,
The CODE works fine.
Thanks for your timely guidance.
regards,
avid_lrner.
Back to top
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