Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Mark the Policy No

LOAD,

POLICY_NO

CLASS,

AMOUNT

FROM C:\POLICY.QVD;

(QVD)

Say I have 1000 policies in the above load. In that 1000 policies there about 10 policies which I want to mark as 'UNPAID' and I know the numbers as well. How Can I edit the script to suit it

Labels (1)
1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Add the policy numbers, as you know them, as UNPAID in the load using preceding load:

LOAD *, If(Match(POLICY_NO,policy1,policy2,...,policy10),'UNPAID') as STATUS;

LOAD,

POLICY_NO

CLASS,

AMOUNT

FROM C:\POLICY.QVD;

(QVD)

View solution in original post

2 Replies
nagaiank
Specialist III
Specialist III

Add the policy numbers, as you know them, as UNPAID in the load using preceding load:

LOAD *, If(Match(POLICY_NO,policy1,policy2,...,policy10),'UNPAID') as STATUS;

LOAD,

POLICY_NO

CLASS,

AMOUNT

FROM C:\POLICY.QVD;

(QVD)

upaliwije
Creator II
Creator II
Author

THANKS