Create a Directory Using SAS

Posted on May 17, 2015 in Computer Science • Tagged with programming, SAS, directory, file system, filesystem, create, dcreate

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

you can use the …


Continue reading

Formatting Data in SAS

Posted on Nov 17, 2009 in Computer Science • Tagged with SAS, formatting data, programming, label

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

Data Formatting

  1. To add …


Continue reading

Date Utilities in SAS

Posted on Sep 17, 2014 in Computer Science • Tagged with programming, SAS, date

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Convert a Date to a String of the Format "YYYYMMDD"

data _null_;
    x = put("23Aug2014"d, yymmddn8.);
    put x date9.;
run;

or

data _null_;
    x = putn("23Aug2014 …

Continue reading

SAS Loop

Posted on Jan 17, 2015 in Computer Science • Tagged with programming, SAS, loop

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

y = 0;
do i …

Continue reading

Combine Data Vertically in SAS

Posted on May 17, 2015 in Computer Science • Tagged with programming, SAS, combine, concatenate, vertically, rbind

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

  1. union all (keep all …

Continue reading

Rounding Related Functions in SAS

Posted on Mar 17, 2015 in Computer Science • Tagged with programming, SAS, rounding

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

  1. To avoid numerical issues …


Continue reading