Import/Export Data to/from SAS

Posted on Jan 30, 2015 in Computer Science • Tagged with programming, SAS, import, procedure, Excel

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

Import Data to SAS

  1. The IMPORT procedure is based on the DATA step. When you run an IMPORT procedure, the unlying data step code is printed into …


Continue reading

Tuple in SAS

Posted on May 26, 2015 in Computer Science • Tagged with programming, SAS, tuple, comma, space

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. **

A tuple can be …


Continue reading

Number of Observations in a SAS Dataset

Posted on May 17, 2015 in Computer Science • Tagged with programming, SAS, observation, number, dataset

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. **

proc sql;
    select count …

Continue reading

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