BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Q1983
Lapis Lazuli | Level 10

ods pdf file="&OutDir/&ReportOut..pdf";

 

title1 j=l justify= left &wkday. &Date1. &Time1. j=right 'Page ^{thispage} of ^{lastpage}';

title2 '';

title3 j=l Impact Study;

title4 j=c "_____________________________________________________________________________________________________________________";

title5 justify=center 'Individual Assistance Declared';

PROC REPORT DATA= INDIVIDUAL_ASSISTANCE headskip split='*' wrap nowd

style(report)=[background=black cellspacing=10 just=center font_size=9pt font_face="Calibri" bordercolor=black borderwidth=1]

style(column)=[background=white font_size=10pt bordercolor=black borderwidth=1]

 

 

;

COLUMNS _ALL_;

 

 

run;

 

ods pdf close;

 

I am trying to show a line extending across the report in the title area.  Right now I am showing

title4 j=c "_____________________________________________________________________________________________________________________";  Isnt there a more efficient way to just print a line in the title area ???  I did this simply by drawing a line here

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

You can use a function via %sysfunc() e.g:

 

%put %sysfunc(repeat(_,36));

So maybe:

 

title4 "%sysfunc(repeat(_,36))";

36 being the number of times to repeat the character.

View solution in original post

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

You can use a function via %sysfunc() e.g:

 

%put %sysfunc(repeat(_,36));

So maybe:

 

title4 "%sysfunc(repeat(_,36))";

36 being the number of times to repeat the character.

Q1983
Lapis Lazuli | Level 10

You're a genius..I just have to increase the number from 36 to a larger number so the line can encapsulate the entire page.  However I definitely learned something here 

sas-innovate-2024.png

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.

 

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
  • 2 replies
  • 822 views
  • 1 like
  • 2 in conversation