![]() Chapter Contents |
![]() Previous |
![]() Next |
| The FORMAT Procedure |
| Procedure feature: |
|
This example uses an INVALUE statement to create a numeric informat that converts numeric and character raw data to numeric data.
| Program |
libname proclib 'SAS-data-library-1'; libname library 'SAS-data-library-2';
options nodate pageno=1 linesize=64 pagesize=40;
| | proc format library=library; |
| | invalue eval 'O'=4
'S'=3
'E'=2
'C'=1
'N'=0;
run; |
| | proc print data=proclib.points noobs; title 'The PROCLIB.POINTS Data Set'; run; |
| Output |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.