- Home
- About Us
- Workshops & Seminars
- Software Help
- Software Access
- Spatial Analysis / GIS
- External Resources
The Center For Statistical Consultation and Research
3550 Rackham Building University of Michigan Ann Arbor, MI 48109-1070
more contact info
3550 Rackham Building University of Michigan Ann Arbor, MI 48109-1070
more contact info
SAS Topics: Coding Examples
All example code is provided without guarantee. We have successfully used the code on real world data -- this does not mean that it is applicable to every conceivable situation. Do not use a code snippet unless you understand what it is doing.
If you have a question regarding one of the examples, please contact UofM SAS Technical Support.
- Current AUTOEXEC.SAS for public ITD machines
- Read Tab-Delimited Data into SAS
- Write a SAS Dataset to an ASCII file
- Reading Excel files with PROC ACCESS
- Reading dBase files with PROC DBF
- Case-wise Merge with Two Datasets
- Variable-wise Merge with Multiple Datasets
- Orthogonal Polynomials and PROC REG
- Converting character variables to numeric -- Example One
- Converting character variables to numeric -- Example Two
- Easy dummy variable creation
- Get the 3 largest variables from an array of variables
- No Pagebreaks in .LST Files
- Creating SAS transport files from SAS datasets.
- Creating SAS datasets from SAS transport files.
- Changing data structure from paired to individual cases.
- Using Proc Mixed for a paired t-test compared to Proc Means.
- Conditionally replace the values of a dataset with new values from a transaction dataset.
- Unconditionally replace the values of a dataset with new values from a transaction dataset.
- Replace the values in a master dataset with the nonmissing values of a transaction dataset.
- Using different missing value codes in SAS.