I've a data as follows in one dataset. Here the mechanism which I want to perform is, CURRENT_ID should be available in RISK_CURVE dataset and INSURANCE_CON. In similar way, GROUP_ID should be available in INSURANCE_CON_GRP and INSURANCE_CON dataset and so on. Here the base dataset is INSURANCE_CON.
In case if there are some values which are not in base table (INSURANCE_CON) but in reference table (INSURANCE_CON_GRP, RISK_CURVE) then I've to capture that record in the Output.
Checks
TBL_NM
CURRENT_ID should be available in RISK_CURVE
INSURANCE_CON
GROUP_ID should be in INSURANCE_CON_GRP
INSURANCE_CON
LOCK_ID should be available in RISK_CURVE
INSURANCE_CON
Output which I'm looking for,
Fault_record_in_reference_table
1,M,Joseph,234
11,F,Nakma,236
Although this mechanism sounds like a look up, challenge which I have is writing the this validation checks in macro as I've to insert this code in other macro code. Would be grateful if it can be accomplished with minimal code.
... View more