Hi Experts,
Here is my typical requirement.... During TD upload we are populating PC WITH DUMMY_PC AND FA WITH DUMMY_FA... At later point of time, we are populating these values with Correct PC and CC using below script where PC and CC are maintained as attributes of CC.
*XDIM_MEMBERSET PC = DUMMY_PC
*XDIM_MEMBERSET FA = DUMMY_FA
*XDIM_MEMBERSET TIME = %TIME_SET%
*WHEN CC.FA
*IS <> ""
*REC(EXPRESSION = %VALUE%, PC=CC.PC, FA=CC.FA)
*REC(EXPRESSION = 0)
*END WHEN
When I execute the above script for the first time... it worked as expected by making record with DUMMY_PC and DUMMY_FA as 0.
But when I try to run the same package for the 2nd time, I am facing with the below issue i.e. as the DUMMY_PC and DUMMY_FA values are 0, now it is updating the correct record (which is the end result of step 1) with 0.
To overcome this problem.. I changed the code as follows -
*WHEN CC.FA
*IS <>""
*REC(EXPRESSION=((%VALUE%<>0)*1),PC=CC.PC, FA=CC.FA)
*END WHEN.
Here I am facing the difficulty with syntax... Actually I want to write in such a way that if value <>0 then consider all such records and update with PC - CC.PC and FA = CC.FA and all other records i.e. record with value = 0.. I want to skip those records.
Could you help me out with correct syntax... Thanks in advance.