The SAS Output Delivery System and reporting techniques

Report - Left justification

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 17
Accepted Solution

Report - Left justification

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;
Attachment

Accepted Solutions
Solution
‎08-29-2016 09:34 PM
Occasional Contributor
Posts: 17

Re: Report - Left justification

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

View solution in original post


All Replies
Esteemed Advisor
Esteemed Advisor
Posts: 7,203

Re: Report - Left justification

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 

Solution
‎08-29-2016 09:34 PM
Occasional Contributor
Posts: 17

Re: Report - Left justification

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

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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