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

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

1 ACCEPTED SOLUTION

Accepted Solutions
arnouxvr
Fluorite | Level 6

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

6 REPLIES 6
arnouxvr
Fluorite | Level 6

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

Scott_Mitchell
Quartz | Level 8

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.

Karan
Calcite | Level 5

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

Karan
Calcite | Level 5

How to print the path in manually?

arnouxvr
Fluorite | Level 6

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.

Karan
Calcite | Level 5

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

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
  • 6 replies
  • 31065 views
  • 5 likes
  • 3 in conversation