BookmarkSubscribeRSS Feed
Sikcion
Fluorite | Level 6

Hi guys! I have a question about creating a line at the bottom of the report using Proc Report.

break after ord1/skip;
compute before ord1;
line @1 80*"  ";
endcomp;
compute after _page_;
line @1 80*"_";
endcomp;
run;
ods pdf close;

here is my code:

and this table is quite long and has 2 pages, after running this code, I have line in each page at the bottom of table, while I only want one line in the bottom of whole table.

Screenshot 2024-01-04 at 9.38.53 PM.png

how can I delete the bottom line of page 1 ? thank you.

1 REPLY 1
A_Kh
Lapis Lazuli | Level 10

Try to replace your last compute block by following (removing  _page_):

			compute after ;
				line @1 80*'__';
			endcomp;

or just 

		compute after / style=[bordertopcolor=black bordertopwidth=1pt];
			line ' ';
		endcomp;

 

compute after _page_ does likely insert line at the end of every page. 

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
  • 1 reply
  • 316 views
  • 1 like
  • 2 in conversation