2

Looking at the log file generated by one line of 1 line of SAS Code you probably see what I mean. This can be annoying if you're used to work with SAS 9.1 to code your programs... Any suggestions?

Code:

%put foo;

Log:

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL=%NRBQUOTE(Code);
4          %LET _EGTASKLABEL=%NRBQUOTE(Code);
5          %LET _CLIENTPROJECTNAME=%NRBQUOTE();
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
NOTE: Some of your options or statements may not be supported with the Activex or Java series of 
      devices.  Graph defaults for these drivers may be different from other SAS/GRAPH device 
      drivers.  For further information, please contact Technical Support.
9          OPTIONS DEV=ACTIVEX;
10         FILENAME EGHTML TEMP;
NOTE: Writing HTML(EGHTML) Body file: EGHTML
11         ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=EGDefault
11       ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/Shared%20Files/BIClientStyles/EGDefault.css
11       ! ") ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v91/sasgraph.exe") NOGTITLE
11       ! NOGFOOTNOTE GPATH=&sasworklocation;
12         
13         %gaccessible;
14         %put foo;
foo
15         
16         %LET _CLIENTTASKLABEL=;
17         %LET _EGTASKLABEL=;
18         %LET _CLIENTPROJECTNAME=;
19         %LET _SASPROGRAMFILE=;
20         
21         ;*';*";*/;quit;run;
22         ODS _ALL_ CLOSE;
23         
24         
25         QUIT; RUN;
26
flag

1 Answer

1

hey. I think this is one of the prices you pay for using EG. I just recently started using it again after a few years and remembered all of the annoying extra SETUP stuff it puts in just for its own purposes.

If you really need a clean log, you could always try redirecting in your code to avoid the EG cruft.

proc printto log="filename";run;

and then afterwards...

proc printto log=log; run;
link|flag
Thanks for the tip but I'm not convinced redirecting the EG auto-generating mambo jambo code to a file does resolve the problem. I would like to either clean the log or change EG logging behavior. Any idea? I was trying the option nonotes in the EGAuto.sas, but no success yet. – Luc R. Oct 29 at 20:06
This would go in YOUR code and so the log redirection would be for your output. the EG auto-generated mambo jambo (aka EGAGMJ) would still go to the displayed Log. I would have thought that options nonotes in the EG would have worked as well. – jay.l.stevens Oct 30 at 10:00

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.