Hi.This is the first time iam entering this forum. Please help me with this.
data results;
input category $ year gwp;
cards;
Reinstatement 2003 -104
Reinstatement 2004 -148
Reinstatement 2005 -14.25
Normal_Renewals 2003 125.25
Normal_Renewals 2004 145.36
Normal_Renewals 2005 -178.29
Canc_Agncy_Tfd 2003 -89.75
Canc_Agncy_Tfd 2004 450.00
Canc_Agncy_Tfd 2005 478.00
Canc_Clnt_Req 2003 -58.36
Canc_Clnt_Req 2004 -87.69
Canc_Clnt_Req 2005 -145.69
Canc_Lost_To_Unknown_Comp 2003 -159
Canc_Lost_To_Unknown_Comp 2004 -58.69
Canc_Lost_To_Unknown_Comp 2003 -78.69
Canc_With_Migration 2003 -48.69
Canc_With_Migration 2004 -58.78
Canc_With_Migration 2005 -45.69
;
run;
The dataset at work has about 136 observations and all the cancellation categories start with the
word "canc". Since they are about 80 observations that start with word "canc" it is difficult
to enter each and every cancelaltion category. In my calculation of overallresults below i would also want to exclude Canc_With_Migration which doesnt fall under the cancellation category. Please help me to produce
these results.
Calculation
overallresults=sum(Reinstatement_2003,Reinstatement_2004,Reinstatement_2005 )+
sum(Normal_Renewals_2003,Normal_Renewals_2004,Normal_Renewals_2005)+
sum(Canc_Agncy_Tfd_2003,Canc_Agncy_Tfd_2004,Canc_Agncy_Tfd_2005,
Canc_Clnt_Req_2003,Canc_Clnt_Req_2004,Canc_Clnt_Req_2005+
Canc_Lost_To_Unknown_Comp_2003,Canc_Lost_To_Unknown_Comp_2004,
Canc_Lost_To_Unknown_Comp_2005)
If you find any difficulties in understanding my query pls feel free to ask.
Regards,
SAS18
data results;
input category $ year gwp;
cards;
Reinstatement 2003 -104
Reinstatement 2004 -148
Reinstatement 2005 -14.25
Normal_Renewals 2003 125.25
Normal_Renewals 2004 145.36
Normal_Renewals 2005 -178.29
Canc_Agncy_Tfd 2003 -89.75
Canc_Agncy_Tfd 2004 450.00
Canc_Agncy_Tfd 2005 478.00
Canc_Clnt_Req 2003 -58.36
Canc_Clnt_Req 2004 -87.69
Canc_Clnt_Req 2005 -145.69
Canc_Lost_To_Unknown_Comp 2003 -159
Canc_Lost_To_Unknown_Comp 2004 -58.69
Canc_Lost_To_Unknown_Comp 2003 -78.69
Canc_With_Migration 2003 -48.69
Canc_With_Migration 2004 -58.78
Canc_With_Migration 2005 -45.69
;
run;
The dataset at work has about 136 observations and all the cancellation categories start with the
word "canc". Since they are about 80 observations that start with word "canc" it is difficult
to enter each and every cancelaltion category. In my calculation of overallresults below i would also want to exclude Canc_With_Migration which doesnt fall under the cancellation category. Please help me to produce
these results.
Calculation
overallresults=sum(Reinstatement_2003,Reinstatement_2004,Reinstatement_2005 )+
sum(Normal_Renewals_2003,Normal_Renewals_2004,Normal_Renewals_2005)+
sum(Canc_Agncy_Tfd_2003,Canc_Agncy_Tfd_2004,Canc_Agncy_Tfd_2005,
Canc_Clnt_Req_2003,Canc_Clnt_Req_2004,Canc_Clnt_Req_2005+
Canc_Lost_To_Unknown_Comp_2003,Canc_Lost_To_Unknown_Comp_2004,
Canc_Lost_To_Unknown_Comp_2005)
If you find any difficulties in understanding my query pls feel free to ask.
Regards,
SAS18