Does anyone know where the sample code for the publication SAS 9.3 Stored Process Examples is located at? I am getting back to stp programming after a five year break and would like to bring myself back up to speed by working the examples.
Many Thanks,
James
What do you see when you :
Right Click on the Sample Stored Process - > Modify - > Name and Description ( Metadata Path )
Right Click on the Sample Stored Process - > Modify - > Execution Options ( Source Code)
You can view the source for all stored processes by adding the `_debug=list` parameter to the url, eg:
`http://YOURDOMAIN/SASStoredProcess/?_debug=list`
Since 9.3 it was possible to store source code inside the Stored Process metadata, so you won't see code on the filesystem for some examples
Actually, I am looking for the sample code that shipped with the following sas publication https://support.sas.com/documentation/onlinedoc/inttech/9.3/stpex.pdf. Would like to know if it is possible to get my hands on the code and associated support files.
Not directly relevant, but for those interested. You can download the source code for those STPs where the code is stored inside the metadata using this macro.
Usage as follows:
/* compile macros */
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;
/*
get the STP code for an stp at /some/meta/path/someSTP
and write it to the WORK folder
*/
%mm_getstpcode(tree=/some/meta/path
,name=someSTP
,outloc=%sysfunc(pathname(work))/myfile.sas
)
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.