Page 1 of 1

Force a return code of zero

PostPosted: Wed Oct 20, 2010 8:57 pm
by rward06
I need to be able to force File-Aid when doing a batch compare to return zero even if differences were found. Under Comparex I could use the KILLRC keyword but I can't find anything similar in File-Aid.

Re: Force a return code of zero

PostPosted: Wed Oct 20, 2010 9:28 pm
by Robert Sample
What does the File Aid documentation tell you?

Re: Force a return code of zero

PostPosted: Wed Oct 20, 2010 9:30 pm
by rward06
I've looked through the batch manual and I can't find any reference to forcing a return code. The closest I can see is the ABEND parm which lets you determine the return code under which and ABEND occurs.

Re: Force a return code of zero

PostPosted: Wed Oct 20, 2010 10:53 pm
by Robert Sample
Products are not always directly comparable, and it appears you have found one area where COMPAREX and FILE AID are different. You might talk to Compuware about this, but I suspect they'll tell you File Aid is working as designed.

Re: Force a return code of zero

PostPosted: Thu Oct 21, 2010 3:11 am
by dick scherrer
Hello,

I'm probably missing something obvious, but why even compare if the return code is always set to zero . . . :?

Re: Force a return code of zero

PostPosted: Tue Oct 26, 2010 12:56 am
by rward06
We are using the compare to take two directory listings and then spit out to anoher file a list of files that are on the first list but not on the second. I did finally find out how to do it though. You have to specify the following EXEC PARM in the JCL (this is shown with HEX ON):

PARM='OPT=02501006066111210250000058821080 *MN008NYN 4NNFNYNN  '
DCDD77DDE7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF05DDFFFDED4FDDCDEDD407
7194ED673E025010060661112102500000588210800C4500858504556585500D


The last byte contains the return code in hex that you want to use when a miscompare is found. So in this example I've used x'00' to get my return code of zero.