Force a return code of zero



Compuware's data management products: File-AID for IMS, File-AID/MVS, File-AID for DB2 and DBA-XPERT for DB2

Force a return code of zero

Postby rward06 » Wed Oct 20, 2010 8:57 pm

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.
rward06
 
Posts: 5
Joined: Sat Oct 16, 2010 2:40 am
Has thanked: 0 time
Been thanked: 0 time

Re: Force a return code of zero

Postby Robert Sample » Wed Oct 20, 2010 9:28 pm

What does the File Aid documentation tell you?
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Force a return code of zero

Postby rward06 » Wed Oct 20, 2010 9:30 pm

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.
rward06
 
Posts: 5
Joined: Sat Oct 16, 2010 2:40 am
Has thanked: 0 time
Been thanked: 0 time

Re: Force a return code of zero

Postby Robert Sample » Wed Oct 20, 2010 10:53 pm

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Force a return code of zero

Postby dick scherrer » Thu Oct 21, 2010 3:11 am

Hello,

I'm probably missing something obvious, but why even compare if the return code is always set to zero . . . :?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Force a return code of zero

Postby rward06 » Tue Oct 26, 2010 12:56 am

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.
rward06
 
Posts: 5
Joined: Sat Oct 16, 2010 2:40 am
Has thanked: 0 time
Been thanked: 0 time


Return to File-AID

 


  • Related topics
    Replies
    Views
    Last post