PERCENTw.d
|
DATEw.
|
NENGOw.
|
$BINARYw.
|
DATETIMEw.
|
PDw.d
|
$VARYINGw.
|
HEXw.
|
|
$w.
|
JULIANw.
|
TIMEw.
|
COMMAw.d
|
MMDDYYw.
|
w.d
|
input @9 FirstName $5.;
input @9 FirstName $5. @1 LastName $7. +7 JobTitle 3.;
1.
|
the informat name
|
COMMA
|
2.
|
a value that specifies
the width of the field to be read (including dollar signs, decimal
places, or other special characters), followed by a period
|
w.
|
3.
|
an optional value that
specifies the number of implied decimal places for a value (not necessary
if the value already contains decimal places)
|
d
|
data sasuser.empinfo;
infile empdata;
input @9 FirstName $5. @1 LastName $7. +7 JobTitle 3.
@19 Salary comma9.;
run;
data sasuser.empinfo;
infile empdata;
input @9 FirstName $5. @1 LastName $7. +7 JobTitle 3.
@19 Salary comma9.;
run;
proc print data=sasuser.empinfo;
run;
data sasuser.empinfo; infile empdata; input @9 FirstName $5. @1 LastName $7. +7 JobTitle 3. @19 Salary comma9.; run;