![]() Chapter Contents |
![]() Previous |
![]() Next |
| The DATASETS Procedure |
| Procedure features: |
|
Tasks include
| Program |
| | options pagesize=40 linesize=80 nodate pageno=1 source; |
libname health 'SAS-data-library';
| | proc datasets library=health nolist; |
| | modify group (label='Test Subjects' read=green sortedby=lname); |
| | index create vital=(birth salary) / nomiss unique; |
| | informat birth date7.;
format birth date7.; |
| | label salary='current salary excluding bonus'; |
| | modify oxygen;
rename oxygen=intake;
label intake='Intake Measurement';
quit; |
| SAS Log |
1 options pagesize=40 linesize=80 nodate pageno=1 source;
2
3 proc datasets library=health nolist;
4
5 modify group (label='Test Subjects' read=XXXXX sortedby=lname);
WARNING: The file HEALTH.GROUP.DATA is not ALTER protected. It could be
deleted or replaced without knowing the password.
6
7 index create vital=(birth salary) / nomiss unique;
NOTE: Composite index vital has been defined.
8
9 informat birth date7.;
10 format birth date7.;
11 label salary='current salary excluding bonus';
12
13 modify oxygen;
14 rename oxygen=intake;
NOTE: Renaming variable oxygen to intake.
15 label intake='Intake Measurement';
16 quit; |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.