Tips:Get the Metadata Path for the Currently Running Stored Process

From sasCommunity

Jump to: navigation, search

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

Personal tools