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
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
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.