|
|
|
|
|
|
|
SAS (Statistical Analysis System) provides tools for statistical
analysis, data management, and report writing. A SAS job is divided
into DATA and PROC (PROCedure) steps. In DATA steps you describe your
data to SAS and create any variables you need. In PROC steps you tell
SAS to perform specific analyses on your data. You can execute a SAS
program under VMS using BATCH.
Here are some steps you may use to run a SAS program in batch mode.
1. Create a SAS program EDUC.SAS
2. Create a data file EDUC.DAT for SAS program EDUC.SAS
3. Submit SAS program EDUC.SAS as a batch job
4. Check program and get a hard copy of output
Batch Mode
DATA EDUCATN; * DATA step starts with keyword DATA;
INFILE EDUC;
INPUT NAME $ SEX $ AGE HEIGHT WEIGHT SCORE1 SCORE2;
PROC PRINT; * PROC step starts with keyword PROC;
ALICE F 21 62.5 112 90 95
. . .
WILLIAM M 20 72.0 182 84 94
$ SUBSAS EDUC
After the job is completed, a log file (EDUC.LOG) and an
output file (EDUC.LIS) of PROC steps are created.
$ TYPE EDUC.LOG
$ PRINT/DELETE/NOTIFY EDUC.LIS
This page maintained by: Jim Johnson
For additional information, contact Paul Tsai, PTsai@tntech.edu
Last updated: December 14, 1998