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
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

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
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

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

sas-innovate-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

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
  • 5 replies
  • 865 views
  • 5 likes
  • 4 in conversation