forked from edwinhu/sas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DOWNLOAD.sas
38 lines (33 loc) · 965 Bytes
/
DOWNLOAD.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
%MACRO DOWNLOAD(
inlib=,outlib=,
inset=,outset=,
index=YES
);
%SYSLPUT inlib=&inlib.;
%SYSLPUT outlib=&outlib.;
%SYSLPUT inset=&inset.;
%SYSLPUT outset=&outset.;
%SYSLPUT index=&index.;
RSUBMIT;
PROC DOWNLOAD
%if not(%sysevalf(%superq(index)=,boolean)) %then %do ;
index=&index.
%end;
%if not(%sysevalf(%superq(inlib)=,boolean)) %then %do ;
inlib=&inlib.
%end;
%if not(%sysevalf(%superq(outlib)=,boolean)) %then %do ;
outlib=&outlib.
%end;
%if not(%sysevalf(%superq(inset)=,boolean)) %then %do ;
data=&inset.
%end;
%if not(%sysevalf(%superq(outset)=,boolean))
and %sysevalf(%superq(index)=,boolean)
%then %do ;
out=&outset.
%end;
;
RUN;
ENDRSUBMIT;
%MEND;