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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.