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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 915 views
  • 0 likes
  • 2 in conversation