vvkswm wrote:Hi,I tried the Below JCL with NOEQUALS.Then also the output is same as EQUALS.
Please can you explain me the use of EQUALS in jcl while sorting records.
wow really? Did you even read my prior response?
skolusu wrote:If you really want to see the difference between EQUALS and NOEQUALS you need to play with input that has more duplicates.
I have no idea why people are so persistent on trying to prove EQUALS and NOEQUALS gets the same results.
Run this JCL and pay attention to the 6th byte, which is in the ascending order. I am sorting on the first 3 bytes which is basically the word "key" for every record.
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
//SORTOUT DD SYSOUT=*
//SYSIN DD *
INREC OVERLAY=(250:C'VVKSWM STRONGLY BELIEVES EQUALS HAS NO VALUE')
Copy the output and now re-run the job with EQUALS and then compare the output.
P.S: If you strongly believe that EQUALS and NOEQUALS makes no difference to the order of the Output , you can stop coding it and get burned. It is up to you. Good Luck