BookmarkSubscribeRSS Feed
PhilMason
Obsidian | Level 7
I know I can set some code to run in autoexec.sas when my stored process server starts, but I was wondering if there is a way to set some code to run *every time* a stored process runs. I want to run some code which looks at a userid and allocates a macro library for that person in front of the other standard ones. This needs to run each time a stored process runs, since every stored process might be run by a different person.

I thought there might be a place (somewhere) where I could define a file to run before each stored process? Is there? If there is not a nice way to do it, then I would have to resort to putting a bit of code into every stored process I create (which would be very annoying).

thanks for any help

Phil
1 REPLY 1
Vince_SAS
Rhodochrosite | Level 12
This feature has been added in 9.2, and is similar to the Request INIT program of the SAS/IntrNet Application Dispatcher. See:

http://support.sas.com/onlinedoc/913/getDoc/en/dispatch.hlp/appreq.htm

Vince
SAS R&D

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 653 views
  • 0 likes
  • 2 in conversation