Hello Friends
I have created a Proc Report with limiting few columns. I have centered one of the columns (variable) but the values underneath the column I want them to be left justified. Those are aligned as per the heading. If I set the heading left, all the values for that column become left or center or right justified. I want heading to be center and contents below that column to be left justified. Can any one help me on this? Thanks for your help and really appreciated.
proc report data=test nowd;
/*column make model type msrp;*/
column make model type cylinders;
/*where make in ('Toyota','Honda') and msrp < 15000;
where msrp < 15000;
define msrp / order descending; */
where cylinders in (4,6);
define model / 'Model of vehicle' center;
run;
Thanks you very much. Let me try with change code as you mentioned.
You can specify element alignment by stipulating the part name in teh style statement:
proc report data=test nowd;
column make model type cylinders;
where cylinders in (4,6);
define model / 'Model of vehicle' style(header)={just=c} style(column)={just=l};
run;
For reference:
Thanks you very much. Let me try with change code as you mentioned.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.