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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1120 views
  • 0 likes
  • 3 in conversation