Question: proc sql; create table Loan_Status_Count as select Loan_Status, count(*) as Count from mylib.customer_banking_info group by Loan_Status; quit; /* Step 2: Define the Pie Chart Template
proc sql; create table Loan_Status_Count as select Loan_Status, count(*) as Count from mylib.customer_banking_info group by Loan_Status; quit; /* Step 2: Define the Pie Chart Template */ proc template; define statgraph PieChart; begingraph; layout overlay; piechart category=Loan_Status response=Count / datalabel display=(all) dataskin=crisp; /* Optional */ endlayout; endgraph; end; run; /* Step 3: Render the Pie Chart */ proc sgrender data=Loan_Status_Count template=PieChart; run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
