PING
0.9
Statistical data handling and processing in production environment
|
This macro retrieves either the name of the client SAS EG project (without its extension) it is launched in or the path of where it is located.
path
: (option) flag set to base/path/drive
when respectively the project's name/path/drive path shall be returned; default: path=path
, i.e. the path of the current project directory is returned;dashreplace
: (option) boolean flag set to yes
when the -
in the path needs to be trimmed (i.e., replaced with a blank); this is used only when path=base
, e.g. to produce automatically tables whose names are derived from the program used to generate them; default to no
;parent
: (option) boolean flag set to yes when the path of the parent directory of the current project shall be returned; this is used only when path=path
or drive
; default to no
.p
: depending on path
value:
egp
extension,Imagine the name of the program running this function is test-01.egp
and is located in the directory Z:\main\test
, then:
returns: p=test-01
.
returns: p=test01
.
returns: p=Z:/main/test
returns: p=/main/test
.
returns: p=Z:/main
.
Run macro %_example__egp_path
for examples.
_CLIENTPROJECTNAME
and _CLIENTPROJECTPATH
.SASMain
), the path returned with option path=base
or (drive)path is always formatted as a local path, hence there is no difference.Hemedinger, C.: Special automatic macro variables available in SAS Enterprise Guide.