Hi all,
I have a sample data set and I want to sum the current_balance of same icustomerid. For e.g. if there are two debt_codes with one icustomerid then I would like to see one icustomerid with the total current_balance. I am trying to find the total balance for each icustomerid. Here is the sample dataset.
Data Test;
infile cards expandtabs;
input rep_code $ debt_code client_code $ Current_balance Balance_banding $ icustomerid;
datalines ;
168 245442736 3G073 47.57 £40-50 490
168 284369295 SUL007 7.79 £0-10 490
122 379059801 CAPONE150 276.21 £50+ 1234
122 379021629 CAPONE150 625.88 £50+ 1234
122 401458237 VANQUIS199 2862.77 £50+ 1234
122 396978322 EON067 252.35 £50+ 1234
168 441317245 SHOPDRCT1063 271.29 £50+ 125
;
run;
Can you please suggest the correct way?