-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsyslput612.sas
43 lines (38 loc) · 1.46 KB
/
syslput612.sas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%macro syslput612(macvar,macval,remote=);
/*--------------------------------------------------------------
*
* SAS TEST LIBRARY
*
* NAME: SYSLPUT
* TITLE: MACRO FOR CREATING REMOTE MACRO VARIABLES
* INPUT:
* OUTPUT:
* SPEC.REQ:
* SYSTEMS: ALL
* PRODUCT: SAS/CONNECT
* KEYS:
* REF:
* COMMENTS:
* SUPPORT: LANGSTON, B.
* UPDATE: 01mar95.
*
*--------------------------------------------------------------*/
/****************************************************************/
/* SYSLPUT is the opposite of SYSRPUT. SYSLPUT creates a macro*/
/* variable in the remote environment. The user must specify */
/* the macro variable and its value. Optionally, the user */
/* may specify the remote session id; the default session is */
/* the current session. */
/****************************************************************/
options nosource nonotes;
%let str=%str(rsubmit &remote;options nosource;)
%nrstr(%let) %str(&macvar = &macval;options source;endrsubmit;);
&str; options notes source;
/*----------------------------------------------------------------*
EXAMPLES:
(1) Macro variable to current (default) remote session:
%syslput(rc,&sysinfo)
(2) Macro variable to specified remote session:
%syslput(flag,1,remote=mvs)
*----------------------------------------------------------------*/
%mend syslput612;