And How to Print the program name and Path using Proc print?
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.
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
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.
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
How to print the path in manually?
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.
How to print the program name and path manually and also using some keywords?
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.