Chapter Contents |
Previous |
Next |
The FORMAT Procedure |
Data sets: |
|
Program |
libname proclib 'SAS-data-library';
options nodate pageno=1 linesize=80 pagesize=40;
data train; set proclib.staff(keep=name idnumber); run; |
proc print data=train noobs; title 'The TRAIN Data Set without a Format'; run; |
proc format; |
value $skill 'a'-<'e','A'-<'E'='Test A' 'e'-<'m','E'-<'M'='Test B' 'm'-'z~','M'-'Z~'='Test C'; run; |
proc report data=train nowd; column name name=test idnumber; define test / display format=$skill. 'Test'; title 'Test Assignment for Each Employee'; run; |
Output |
PROC PRINT output | |
PROC REPORT output | |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.