Skip to content

Instantly share code, notes, and snippets.

@joosti
Created December 27, 2014 14:58
Show Gist options
  • Select an option

  • Save joosti/54eea579d83ebb11bbe5 to your computer and use it in GitHub Desktop.

Select an option

Save joosti/54eea579d83ebb11bbe5 to your computer and use it in GitHub Desktop.
SAS data step conditional code
data sample;
set sample;
if year <= 1997 then do;
preSFAS131 = 1;
/* .. more code .. */
end;
else do;
preSFAS131 = 0;
/* .. more code .. */
end;
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment