Sum variables in roster
Posted: June 23rd, 2017, 5:44 am
Dear all
I want to sum up variables in roster.
Question
HH146 - links the number of row to roster (HH147)
HH148 - need sum of HH147_6
I'm using command given below:
PROC HH148
preproc
$ = HH147_6(1) + HH147_6(2) + HH147_6(3) + HH147_6(4) + HH147_6(5);
The preoblem here is if I select less than 5 in HH146, It is not giving result.
But if I select 5 in HH146, it shows the sum in HH148.
Please let me know what I miss out. |
Thanks
I want to sum up variables in roster.
Question
HH146 - links the number of row to roster (HH147)
HH148 - need sum of HH147_6
I'm using command given below:
PROC HH148
preproc
$ = HH147_6(1) + HH147_6(2) + HH147_6(3) + HH147_6(4) + HH147_6(5);
The preoblem here is if I select less than 5 in HH146, It is not giving result.
But if I select 5 in HH146, it shows the sum in HH148.
Please let me know what I miss out. |
Thanks