Thursday, October 11, 2012

Tips of Using SAS

Tips of Using SAS

  • Richard Koopmann, Jr (2012). Building Macros and Tracking Their Use. This paper provides a framework for developing component macros that report back macro usage.
  • DM is a statement for submitting SAS program Editor, Log, Procedure Output or text editor commands as SAS statemetns. you can use -DM 'CAPS ON'- to set the upper case, use -DM 'COLOR COMMAND RED'- to set the command in red. Usually, I run the OPTIONS or DM at the beginning of my SAS codes.:
       DM 'CLE LOG; CLE OUT'; * CLEARS LOG AND OUTPUT WINDOW;
       DM 'KEYDEF F12 NEXT'; * ASSIGNS THE 'NEXT' COMMAND TO THE F12 KEY;
       OPTIONS NOFMTERR FORMDLIM='-' FORMCHAR='|----|+|---+' CENTER=0 MPRINT=1 MLOGIC=1;

No comments: