Chapter Contents

Previous

Next
%SYSLPUT

%SYSLPUT



Creates a new macro variable or modifies the value of an existing macro variable on a remote host or server

Type: Macro Statement
Requires: SAS/CONNECT
Restriction: Allowed in macro definitions or open code
See also:
%LET
%SYSRPUT


Syntax
Details

Syntax

%SYSLPUTmacro-variable=<value>;

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.

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.  [cautionend]

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.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.