Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using if and extract to compare two fields from two files

Status
Not open for further replies.

dennysthemenace

Technical User
Jun 20, 2004
28
US
In the below rule, I want to extract the records that are not in the DB. I am comparing the partner ID with Agency ID and extracting the records. If they are equal, I get the correct result.

=IF(PartnerId:.:DB =TRIMLEFT(TRIMRIGHT(DB_AGENCY_ID Field:.:test)),f_make_Agent_config(RECORD:test))

If I test for the negative condition, I get into a loop and produce multiple records.

=IF(PartnerId:.:DB !=TRIMLEFT(TRIMRIGHT(DB_AGENCY_ID Field:.:test)),f_make_Agent_config(RECORD:test))

I tried EXTRACT, but with a different result. I get the input as the output for negative conditions. Is there a way to use extract or any other functions to filter the records and get the records that are in the DB? Any help is appreciated. Thanks.


 
=IF(PartnerId:.:DB !=TRIMLEFT(TRIMRIGHT(DB_AGENCY_ID Field:.:test)),none,f_make_Agent_config(RECORD:test))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top