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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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