I have a stored process that performs commonly used business logic. I'd like this stored process to output a data set, not a report. Ideally if it were run in Enterprise Guide it would show a dataset coming out of it that could be used in subsequent steps. Is there any way to do this?
Frank
I have an example of how to do this kind of stored process in my Biz Intel Blog. Here's the post:
http://www.bi-notes.com/2011/11/sas-stored-process-outputs-data-without-a-report/
Hope this helps,
Tricia
Tricia,
Apparently this seems to work only if the target library is pre-assigned(sashelp etc.). Is there any way that we can make this work with the Work Library?
Tricia,
I am trying to create an output from the stored process, I have noticed that the output dataset appears as a step in the Enterprise guide project only if the it is created into a preassigned library.
However my dataset has more than one million rows, and I do not want that to be be created in a permanent library. Is there a way to make the datset appear as a step in the project without writing it to a permanent library.
Thanks
Not that I know of.
Writing to the work-library of another sas session is not possible - unless the server configuration lacks a proper configuration of write-access to the location in which then directories for the work-libraries are created.
Just to have it in the air within this discussion.
You can also use the Stored Process sessions (http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/sesssamp.html). A macro variable (_sessionid) you need to pass through your pages (as a GET parameter). All pages which have the same _sessionid can share the libref called SAVE, and all datasets created in it. This library is temporary, as session expires after (by default) 15 minutes.
If any of the SAS experts are there to correct me, please do.
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.