%SYSLPUT Statement

Creates a new macro variable or modifies the value of an existing macro variable on a remote host or server.
Type: Macro Statement
Restriction: Allowed in macro definitions or open code
Requirement: SAS/CONNECT
See: %LET Statement and %SYSRPUT Statement

Syntax

%SYSLPUTmacro-variable=<value</REMOTE=remote-session-identifier>> ;

Required Arguments

macro-variable
is either the name of a macro variable or a macro expression that produces a macro variable name. The name can refer to a new or existing macro variable on a remote host or server.
remote-session-identifier
is the name of the remote session.
value
is a string or a macro expression that yields a string. Omitting the value produces a null (0 characters). Leading and trailing blanks are ignored. To make them significant, enclose the value in the %STR function.

Details

The %SYSLPUT statement is submitted with SAS/CONNECT software from the local host or client to a remote host or server to create a new macro variable on the remote host or server, or to modify the value of an existing macro variable on the remote host or server.
Note: The names of the macro variables on the remote and local hosts must not contain any leading ampersands.
To assign the value of a macro variable on a remote host to a macro variable on the local host, use the %SYSRPUT statement.
To use %SYSLPUT, you must have initiated a link between a local SAS session or client and a remote SAS session or server using the SIGNON command or SIGNON statement. For more information, see the documentation for SAS/CONNECT software.