Syntax, DATA statement:
DATA SAS-data-set-1 <...SAS-data-set-n>;
|
Syntax, INFILE statement:
INFILE file-specification <options>;
|
infile tests;
C:IrsPersonalRefund.dat
file:
infile 'c:irspersonal efund.dat';
Syntax, INPUT statement
using column input:
INPUT variable <$> startcol-endcol
. . .;
|
filename exer 'Z:sasuserexer.dat';
data exercise;
infile exer;
input ID $ 1-4 Age 6-7 ActLevel $ 9-12 Sex $ 14;
run;
proc print data=exercise;
run;
input ActLevel $ 9-12 Sex $ 14 Age 6-7;
input Age 1-2
input Age 1-2 ActLevel $ 3-6
input Age 1-2 ActLevel $ 3-6 Sex $ 7;