BookmarkSubscribeRSS Feed
saspert
Pyrite | Level 9

Hello,

I am researching frantically for a sample code that would write the output from a stored process to a unix location. My original stored process code is long and complex - so I started with a simple one like this:

*ProcessBody;

%stpbegin;

ods pdf "/sasstg/.../saspert/sashelp_class.pdf";

proc print data=sashelp.class;

where age=&inputage ;

run;

ods _all_ close;

%stpend;

I created this stored process in EG and also created the inputage as a required input variable in the Parameters Step. When I run it using the SP web application, I do get the output in a new IE tab. But, there is no output being generated on the unix location. Any suggestions why that would be the case? Please note that I have no access to SAS Management Console at my client's location.

I reviewed some of the older threads but they are like my scenarios but not exactly identical.

http://communities.sas.com/message/12277#12277

http://communities.sas.com/message/6638#6638

The reason why I am trying to redirect the output to unix rather than _webout is another long story. I have a SAS Track for that if anyone is interested to review that ( [SAS 7610623830] Report on Stored Process Server having intermittent outage issues). Please note that my current priority is to generate the output somehow in some location that can be retrieved.

Thanks in Advance,

saspert


sas discussion thread 8-4-2011 8-50-18 PM.gif
1 REPLY 1
AngelaHall
SAS Employee

The following code works correctly on my machine:


*ProcessBody;
%stpbegin;
ods pdf body="C:\SAS\Packages93\sample.pdf";
proc print data=sashelp.class(obs=1);
run;
ods _all_ close;
%stpend;

I set the stored process to run on Stored Process Server and generate both Streaming and Package result types.
No prompts or target/source data elements are defined in the metadata for this one.

Looking at your ods statement, the BODY= statement is missing. Not sure if that is a typo or the issue that you are having.
Check the stored process logs and add them here if your still having trouble.

~ Angela Hall

http://blogs.sas.com/content/bi

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 691 views
  • 0 likes
  • 2 in conversation