Skip to content

Instantly share code, notes, and snippets.

@masnick
Created July 20, 2014 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masnick/b45e4367e46b5c12efc5 to your computer and use it in GitHub Desktop.
Save masnick/b45e4367e46b5c12efc5 to your computer and use it in GitHub Desktop.
Example manifest file for SAS. See http://masnick.org/analysis_org for more information.
/*
This is a good place to put default settings you want to run every time you run
your entire project.
Here are the settings I recommend: http://protips.maxmasnick.com/sas-sensible-defaults-for-listing-style-output
*/
/* BEGIN default SAS settings */
dm 'odsresults; clear';; /* Clears results from Results bar every time you run this line. */
dm 'clear log'; /* Clear the log window every time you run this line. */
dm 'clear out'; /* Clear the output file every time you run this line. */
ods listing; /* Turn on old style output */
options nodate pageno=1 linesize=80 pagesize=60 source; /* Old style output display settings */
options formchar="|----|+|---+=|-/\<>*"; /* Avoid funny characters when copy/pasting SAS listing output */
/* END default SAS settings */
x 'cd "c:\Users\max\projects\broad_st_pump"'; /* Change working directory to the project directory */
libname broadst "data\"; /* Create a library that uses the project's data folder */
/* You must have two semicolons on %INCLUDE lines. */
%INCLUDE "sas/01_data_cleaning.sas";; /* data cleaning */
%INCLUDE "sas/02_merge_geo_data.sas";; /* merge geographic data into the collected data*/
%INCLUDE "sas/descrptive.sas";; /* descriptive analysis */
%INCLUDE "sas/regression.sas";; /* regression analysis */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment