Reports the IP address of the grid node on which the SAS session was chosen to execute.
Valid in: | %SYSFUNC or %QSYSFUNC Macro, DATA step |
Category: | Grid |
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 on which the function is executing.
specifies the server session that is executing on a grid.
Requirement | Double or single quotation marks can be used. Do not insert a space between the double or single quotation marks. |
Interaction | If the function is used in a DATA step, enclose server-ID in double or single quotation marks. |
/*---------------------------------------------------------------------*/ /* The following sets the macro variable 'myip' to the IP address */ /* of the grid node associated with the server session 'task1' */ /*-------------------------------------------------------------------- */ %let myip=%sysfunc(grdsvc_getaddr(task1));