Step 6
The compiler compiles the FORMAT statement. It says, "When you print DOB, use the MMDDYY8. format."
DATA POINTER;
INPUT @1 ID 3.
@5 GENDER $1.
@7 AGE 2.
@10 HEIGHT 2.
@13 DOB MMDDYY6.;
FORMAT DOB MMDDYY8.;
DATALINES;
Results
The Program Data Vector (PDV):
variable |
characteristics |
_N_ |
numeric, length 8 |
_ERROR_ |
numeric, length 8 |
ID |
numeric, length 8 |
GENDER |
character, length 1 |
AGE |
numeric, length 8 |
HEIGHT |
numeric, length 8 |
DOB |
numeric, length 8, format mmddyy8. |
The input buffer
On disk:
(nothing).