Page 1 of 1
RC is possible in SORT?
Posted:
Thu Nov 12, 2009 1:47 am
by Jegan R
Hi,
we have a Requirement like this:
we have to remove duplicates from a file based on the key using SUM FIELDS=NONE,XSUM and if there are no duplicates , we need to set return code as 01.
How it is possible through SORT? we ned to check SORTXSUM file for empty condition?..
Re: RC is possible in SORT?
Posted:
Thu Nov 12, 2009 4:47 am
by dick scherrer
Hello,
Which sort product is used on your system?
Re: RC is possible in SORT?
Posted:
Thu Nov 12, 2009 11:46 am
by Jegan R
SYNCSORT we are using.. in Pgm i am using normal SORT like :
//STEP1 EXEC PGM=SORT,PARM='NULLOUT=RC4'
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=any file,DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
/*
But, by this method i can set only RC=4.. I need to set RC = 1 , IS this possible in this way or thru any other method?
Re: RC is possible in SORT?
Posted:
Fri Nov 13, 2009 3:11 am
by dick scherrer
Hello,
Not that i'm aware of in the sort. Possibly one of the Syncsort "pro"s will have a more definitive answer.
Why will the rc4 not work as well as an rc1?
Re: RC is possible in SORT?
Posted:
Fri Nov 13, 2009 8:30 pm
by Jegan R
HI,
Yes, it can set RC=4,12,16... But it wil not set RC 1...I dont know why its not possible..
Re: RC is possible in SORT?
Posted:
Sat Nov 14, 2009 2:19 am
by dick scherrer
Hello,
I dont know why its not possible..
Because of decisions made by the author/vendor.
Suggest you plan on using the utility "as is" rather than making the decision a show-stopper.