Skip to content

Instantly share code, notes, and snippets.

@joosti
Created January 27, 2015 16:50
Show Gist options
  • Save joosti/047cd777389a732119c8 to your computer and use it in GitHub Desktop.
Save joosti/047cd777389a732119c8 to your computer and use it in GitHub Desktop.
SAS variables in Compustat Fundamental Annual
/* Retrieve variables in Funda */
ods listing close;
ods output variables = varsFunda;
proc datasets lib = comp; contents data=funda; quit;run;
ods output close;
ods listing;
/* keep relevant variables (excluding firm name, gvkey, fyear, etc)*/
data varsFunda ;
set varsFunda;
if 37 <= Num <= 937;
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment