data Report_3a;
set work.report_3(keep=Category Level Sub_Level Description Weightage Unweighted_Amount Weighted_Amount Scenario_Param_1);
run;
proc print data= Report3a;
title 'LCR_NSFR_Sample_Programming_Report3';
run;
proc report data= work.report_3a out=work.report_3b;
column Category Level Sub_Level Description Weightage Unweighted_Amount Weighted_Amount Scenario_Param_1 Unweighted_Scenario_1 Weighted_Amount_Scenario_1;
define category / order;
define Level / order;
define Sub_Level / order;
define Description / display;
define Weightage / analysis;
define Unweighted_Amount / analysis;
define Weighted_Amount / analysis;
define Scenario_Param_1 / analysis;
define Unweighted_Scenario_1 / computed f=dollar10.3;
define Weighted_Amount_Scenario_1 / computed f=dollar10.3;
compute Unweighted_Scenario_1;
Unweighted_Scenario_1= ???
endcomp;
rbreak after / summarize;
break after sub_level / summarize;
run;
proc print data=work.report1_b;
run;
Having data (in the form of a program) and matching output would help us simulate your need.
Hi Chris
Thanks for your message
I referred to this post How to create a data step version of your data AKA... - SAS Support Communities to create the datalines that you see in my post
Could you kindly delineate how exactly to put forth the data in the form of a program , that would be great !
Data lines are not very useful without a description of the variables.
Read again the page you linked to.
Post a working program to create the data. Also, use the appropriate icon to post code.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.