GRDSVC_GETNAME Function

Reports the name of the grid node on which the SAS grid server session was chosen to execute.
Valid in: %SYSFUNC or %QSYSFUNC Macro, DATA step
Category: Grid

Syntax

grdsvc_getname(identifier)

Required Argument

identifier
identifies the server session that is executing on the grid. The identifier can be specified as follows:
"" | "
is an empty string that is used to refer to the computer at which the statement is executed.
server-ID
specifies the server session that is executing on a grid.
You use the same server-ID that you used to sign on to a server session using the RSUBMIT statement or the SIGNON statement .
If the function is used in a DATA step, enclose server-ID in double or single quotation marks.

Example

/*-----------------------------------------------------------------------*/
/* The following sets the macro variable 'mynodea' to the name of        */
/* the grid node associated with the server ID 'task1'.                  */
/*-----------------------------------------------------------------------*/
%let
mynodea=%sysfunc(grdsvc_getname(task1));

See Also

RSUBMIT statement
SAS/CONNECT User's Guide
SIGNON statement
SAS/CONNECT User's Guide
DATA step
SAS Language Reference: Dictionary
%SYSFUNC or %QSYSFUNC
SAS Macro Language: Reference