BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sas_td2016
Obsidian | Level 7

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;

sas_code.JPG
1 ACCEPTED SOLUTION

Accepted Solutions
sas_td2016
Obsidian | Level 7

Thanks you very much.  Let me try with change code as you mentioned.

View solution in original post

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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:

https://support.sas.com/resources/papers/stylesinprocs.pdf 

sas_td2016
Obsidian | Level 7

Thanks you very much.  Let me try with change code as you mentioned.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 15393 views
  • 1 like
  • 2 in conversation