Thank you
@ballardw . Will follow code formatting going forward. To ask a bit more here:
1. isn't array med of size 12 being initialised with mth_01 to mth_12. And later one med{i} which is mth_01 to mth_12 being initialized with value 0. I'm confused because I can see in sample report out of the whole code, columns are being derived. So was confused with 0 intialization.
2. A statement like : (this piece of code is right above if last.individual_id line)
<
if (med_allowed ne 0) then med{diff+1} = med_allowed;
medal1 = sum(medal1,med_allowed);
/>
to me it looks like med{diff+1} is initialised with med_allowed value, but doesn't seem being used.
I can't understand if its author's way of code or its SAS way of doing.
If I'm right, can you please confirm If i can read it as
<
if (med_allowed ne 0) ;
medal1 = sum(medal1,med_allowed);
/>
P.S: This is very old code and can't reach to author. Thus asking for help here. thank you. I have used SAS documentation to understand concepts overallan and they have been helpful.