BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi all,
I tried to output the proc print in PDF format using ODS in mainframe. when i opened the PDF file, the proc print output is in table format. I just want to remove the table border. Simply i need the output as we seen in the saslist. Please i need answer ASAP.

Thanks,
Selvi
6 REPLIES 6
deleted_user
Not applicable
Hi,

have you tried to add the option style=printer to your ods statement? I haven't tried this myself, but that would be my first guess/try...

:-)
Jenny
Message was edited by: Jenny at Mar 21, 2007 6:27 AM
deleted_user
Not applicable
Hi Jenny,

Thanks. Its working. But the column header has the table layout.
deleted_user
Not applicable
Hi Friends,

the below code working well. But the font size in the PDF file is too small. Please tell me how to increase the size of the font.

ods pdf file=pdfout startpage=now;
data _null_;
file print;
set cdhcpgrep;
format mon $month.;
title ' CDHCPG Report';
put mon y2ddol y2dpct y1ddol y1dpct;
run;
ScottH_SAS
SAS Employee
Selvi,

Using proc template to alter the look of the table can give you what you want. Here is something simple that I put together that I think answers your question.

Let me know if you have more questions.

Scott

Sample program...

options nonumber;

proc template;
define style Styles.noborder;
parent = Styles.minimal;
class Output /
rules = NONE
borderwidth = 0;
end;
run;


ods pdf file="test.pdf" style=styles.noborder;
proc print data=sashelp.class;run;
ods pdf close;
deleted_user
Not applicable
Hi Scott,

Thanks, I tried this in our SAS version 8.*. It returns error in Class Output/ statement out of proper order. Help me Scott, to resolve in veison 8.

Thanks,
Selvi.
ScottH_SAS
SAS Employee
My fault I was using some 9.2 sytnax. Use this sample program instead.

Thanks
Scott

options nonumber;

proc template;
define style Styles.noborder;
parent = Styles.minimal;
replace Output /
rules = none
frame = Box
cellpadding = 7
cellspacing = 1
borderwidth = 0;
end;
run;

ods pdf file="test.pdf" style=styles.noborder;
proc print data=sashelp.class;run;
ods pdf close;

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
  • 982 views
  • 0 likes
  • 2 in conversation