BookmarkSubscribeRSS Feed
blund
Obsidian | Level 7
In SAS on Demand, OPTIONS NOCENTER does not left align the PROC output (but does left align TITLES). Can this be changed? See example.
DATA X;
A=1;
run;
OPTIONS NOCENTER;
run;
PROC PRINT DATA=X;
TITLE "TEST";
run;

 

3 REPLIES 3
ballardw
Super User

By "not align" the Proc output do you mean that the value of 1 for A does not appear in the left most position because of the OBS column in the output? If that is the case then add NOOBS to the Proc statement to remove the observation number.

 

It is always a good idea to show the result you get and what you expect/want for output.

 

 

Tom
Super User Tom
Super User

Which output are you looking at?  I don't think HTML destination supports CENTER/NOCENTER.  Where would the CENTER be on a device that can infinite page width?

JackieJ_SAS
SAS Employee

Try running your code twice.

 

When I run your code the first time, the title is left aligned, and the PROC PRINT output is in the center of the page. When I run the code again, making no modifications, both are on the left side of the page.

 

I could not tell you what, but something is going on with the initialization of the Results window.

Note- to reset the properties of your session, select the three bars & dots icon (it has a circle around it) in the upper right of SAS studio, then select "Reset SAS session".

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 3 replies
  • 393 views
  • 0 likes
  • 4 in conversation