BookmarkSubscribeRSS Feed
jdm_xom
Calcite | Level 5

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

5 REPLIES 5
r_behata
Barite | Level 11

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)

AllanBowe
Barite | Level 11

You can view the source for all stored processes by adding the `_debug=list` parameter to the url, eg:

 

`http://YOURDOMAIN/SASStoredProcess/?_debug=list`

 

Screenshot 2020-01-31 at 18.40.49.png

 

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

 

Screenshot 2020-01-31 at 18.38.55.png

/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
jdm_xom
Calcite | Level 5

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. 

 

Sajid01
Meteorite | Level 14

Hello @jdm_xom 
You wanted to know the location of sample stored process.

 

You can find them here on a WIndows server. Replace 9.4 with 9.3

[SASHOME]\SASFoundation\9.4\inttech\sample.

 

The location can also be found from SAS EG /SMC as shown by  @r_behata 

AllanBowe
Barite | Level 11

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
)

 

/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1932 views
  • 5 likes
  • 4 in conversation