| Category: | utilities |
| Author/Contact Info | nop |
| Description: | Large SAS programs generate large log files. This simple scanning perl script looks for signs of trouble and reports their location within the log. |
# scan SAS logs for problems
# aprk
# 7/20/98
@problem = (
"0 OBS",
"AT LEAST",
"EXTRANEOUS",
"CARTESIAN",
"CLOSING",
"CONVERT",
"DIVISION BY ZERO",
"DOES NOT EXIST",
"DUE TO LOOPING",
"END OF MACRO",
"ENDING EXECUTION",
"ERROR",
"ERRORABEND",
"ERRORCHECK=STRICT",
"EXCEED",
"HANGING",
"HAS 0 OBSERVATIONS",
"ILLEGAL",
"INCOMPLETE",
"INVALID",
"LOST CARD",
"MATHEMAT",
"MERGE STATEMENT",
"MISSING",
"MULTIPLE",
"NOT FOUND",
"NOT RESOLVED",
"OBS=0",
"REFERENCE",
"REPEAT",
"SAS CAMPUS DRIVE",
"SAS SET OPTION OBS=0",
"SAS WENT",
"SHIFTED",
"STOP",
"TOO SMALL",
"UNBALANCED",
"UNCLOSED",
"UNINITIALIZED",
"UNREF",
"UNRESOLVED",
"WARNING"
);
$numproblem = @problem;
while(<>) {
$line++;
for ($i=0; $i<$numproblem; $i++) {
$p = $problem[$i];
if (/$p/i) {print "line $line: problem: $problem[$i]\n$_\n";}
}
}
|
|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE (tilly) 1: SAS log scanner
by tilly (Archbishop) on Sep 02, 2000 at 01:57 UTC | |
by tye (Sage) on Sep 02, 2000 at 03:27 UTC | |
by tilly (Archbishop) on Sep 02, 2000 at 03:47 UTC | |
by takshaka (Friar) on Sep 03, 2000 at 00:15 UTC | |
by tilly (Archbishop) on Sep 03, 2000 at 00:41 UTC | |
by takshaka (Friar) on Sep 03, 2000 at 10:45 UTC | |
|