BookmarkSubscribeRSS Feed
Rohit12
Obsidian | Level 7

 

ods listing close;

Ods pdf file "C:\download\abc.pdf";

Proc print data=sashelp.class;

run;

ods _all_ close;

 

 

my code is running fine but when I am ruuning this code it open the PDF  'abc'  autmatically .

I do not want PDF to be open automatically .How can i acheive that 

 

 

3 REPLIES 3
lakshmi_74
Quartz | Level 8
I am seeing some error in your code.Just added "=" sign for the ods pdf statement. Now try this one.

ods listing close;
Ods pdf file= "C:\download\abc.pdf";
Proc print data=sashelp.class;
run;
ods _all_ close;
Rohit12
Obsidian | Level 7

That was typo mistake it still  open PDF automatically 

andreas_lds
Jade | Level 19

Check the options of the client you are using. Enterprise Guide and SAS Studio have options to prevent the opening of generated results. Unfortunately this option is active or not for all results.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 610 views
  • 0 likes
  • 3 in conversation