I want to be able to enter a BankID into XML file and if record is exist then have integer result,if doesn't should display another result
My code is written in IBM web sphere message broker toolkit
Please help me about this simple problem!!!!
I want to be able to enter a BankID into XML file and if record is exist then have integer result,if doesn't should display another result
My code is written in IBM web sphere message broker toolkit
Please help me about this simple problem!!!!
Try this:
SET Environment.Variables.BankId =THE( SELECT BankId, FROM
Database.YourSchema.YourTable where somecondition=true);
IF EXISTS(Environment.Variables.BankId[]) THEN
SET OutputRoot.XMLNSC.BankId= Environment.Variables.BankId[1] ;
ELSE
SET OutputRoot.XMLNSC.BankId='SOMETHING ELSE';
END IF;