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?

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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