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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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