BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
ender111
Obsidian | Level 7

I have a job running in Job Execution that produces a formatted excel file.  To avoid the user needing to open file explorer, how do I open or activate that newly produced file?  X command won't work because the SAS job runs off the server.  I read that there is a way in ODS, but can't find the proper command or line.  Any help would be appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

You could run the SAS job as a stored process from a web page, then redirect the output back to the user's web browser. It's not something I've done personally but I'm sure there are posts on the Community about it. What version of SAS are you using? In SAS 9.4 there is this:

SASKiwi_0-1674174154286.png

BTW, It's not ODS that is the problem, it is your use of Job Execution.

View solution in original post

3 REPLIES 3
SASKiwi
PROC Star

AFAIK, Job Execution simply kicks off a SAS batch job on your SAS App server. There is no way that job can open an Excel spreadsheet on your PC. What about getting your SAS job to email the user, the spreadsheet as an attachment, or a hyperlink to open it? 

ender111
Obsidian | Level 7

Unfortunately, no.  It has to open it right there while the user is logged in.  If ODS can't do it, any idea what can? Thanks.

SASKiwi
PROC Star

You could run the SAS job as a stored process from a web page, then redirect the output back to the user's web browser. It's not something I've done personally but I'm sure there are posts on the Community about it. What version of SAS are you using? In SAS 9.4 there is this:

SASKiwi_0-1674174154286.png

BTW, It's not ODS that is the problem, it is your use of Job Execution.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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