forked from IU-Data-Management/SAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSaveLogList.sas
More file actions
35 lines (25 loc) · 725 Bytes
/
Copy pathSaveLogList.sas
File metadata and controls
35 lines (25 loc) · 725 Bytes
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
/*
Name: SaveLogList
Description: This macro will save the log list files
Type: Analysis Dataset Creation
Arguments: If 1 is passed then the log list files are created, if not then the logic is skipped.
Other Inputs: <none>
Output: Log and list are printed to output directory specified by using outlog and
outlst libnames in calling program
Usage Notes:
Calls macros: None
History: Date Init Comments
10/27/2010 ACB Creation
*/
%macro saveLogList(finalFlag);
%if &finalFlag = 1 %then %do;
proc printto print=outlst
log=outlog
new;
run;
%end;
%else %do;
PROC PRINTTO PRINT=PRINT LOG=LOG;
run;
%end;
%mend;