How to align the Title as Left and right?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

How to align the Title as Left and right?

And How to Print the program name and Path using Proc print?


Accepted Solutions
Solution
‎07-25-2013 07:27 AM
Contributor
Posts: 25

Re: How to align the Title as Left and right?

The JUSTIFY option will work only for ODS output options.

Example:

data temp;

  date = today();

run;

ods html file='test.html';

title  justify=left 'Title goes left for HTML';

proc print;

run;

ods html close;

In order to justify in listing output please see the code snippet here 24729 - Right or left justify a title or footnote when CENTER is specified let me know if you have any questions.

View solution in original post


All Replies
Contributor
Posts: 25

Re: How to align the Title as Left and right?

Hi try the JUSTIFY= option in the title for ods output formats.

Example: TITLE 'Title goes here' justify=LEFT;

other options is CENTER, LEFT and RIGHT

Super Contributor
Posts: 297

Re: How to align the Title as Left and right?

Are you looking for a solution to dynamically print the program and path names?

I don't know if you can print the Path without entering the information in manually.

If you are using E.G. the macro variable &_CLIENTTASKLABEL; is created when you run your job and contains the program name.

In my case it returned 'Program7'.

This may or may not be helpful.

Occasional Contributor
Posts: 8

Re: How to align the Title as Left and right?

Posted in reply to Scott_Mitchell

This is my code:

Proc print data=test10 ;

TITLE  "CUSTOMER DETAILS" justify=right;

run;

This code displays the title in center only.. for right and left it displays in center only

Occasional Contributor
Posts: 8

Re: How to align the Title as Left and right?

How to print the path in manually?

Solution
‎07-25-2013 07:27 AM
Contributor
Posts: 25

Re: How to align the Title as Left and right?

The JUSTIFY option will work only for ODS output options.

Example:

data temp;

  date = today();

run;

ods html file='test.html';

title  justify=left 'Title goes left for HTML';

proc print;

run;

ods html close;

In order to justify in listing output please see the code snippet here 24729 - Right or left justify a title or footnote when CENTER is specified let me know if you have any questions.

Occasional Contributor
Posts: 8

Re: How to align the Title as Left and right?

Posted in reply to Scott_Mitchell

How to print the program name and path manually and also using some keywords?

🔒 This topic is solved and locked.

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

Discussion stats
  • 6 replies
  • 4396 views
  • 3 likes
  • 3 in conversation