As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Difference between revisions of "Tips:Get the Metadata Path for the Currently Running Stored Process"

From sasCommunity
Jump to: navigation, search
(Removed centering tag)
Line 8: Line 8:
  
 
<noinclude>
 
<noinclude>
[[Category:Tip to be Reviewed]]
+
[[Category:Tip Ready]]
 
</noinclude>
 
</noinclude>

Revision as of 07:21, 12 March 2009

In SAS®9.2, a new reserved macro variable named _METAFOLDER will be available. The value of the variable is the SAS metadata path for the currently running stored process. This allows a program to reference another stored process in the same folder without having to hard-code the entire path, or parse the path value from the _PROGRAM macro variable.

In version 9.1.3, you can use the storedProcessPath macro (see the read more link below) get the path value of the currently executing stored process, and more.

Submitted by Don Henderson. Contact me at my Discussion Page.

....read more