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