Need Help to set the counter
Posted: Wed Mar 29, 2006 6:05 pm
Hello All,
I need some inputs in completing the task below.
I have to compare MNO and PNO with the previous MNO and PNO. If they are equal then I have to add up the count. But if scode = 09 then I have to break the continuity and add the count up to that 09 record.
I need help in setting the counter to stop right at scode = 09 and continue the count with the rest. I am successful in comparing the current and previous rows using the stage variables and also making the prev Count to 0.
Thanks for all the help.
I need some inputs in completing the task below.
Code: Select all
Source:
MNO PNO SCODE CNT
--------- --------- ----- -----
MM0051789 PR0021989 88 10
MM0051789 PR0021989 09 20
MM0051789 PR0021989 90 15
MM0051789 PR0021989 60 10
MM0053322 PR0022244 09 10
MM0053322 PR0022244 09 22
I need help in setting the counter to stop right at scode = 09 and continue the count with the rest. I am successful in comparing the current and previous rows using the stage variables and also making the prev Count to 0.
Code: Select all
Source:
MNO PNO SCODE CNT
--------- --------- ----- -----
MM0051789 PR0021989 88 0
MM0051789 PR0021989 09 30
MM0051789 PR0021989 90 0
MM0051789 PR0021989 60 25
MM0053322 PR0022244 09 10
MM0053322 PR0022244 09 22