data sasuser.stress; infile tests; input ID $ 1-4 Name $ 6-25 RestHR 27-29 MaxHR 31-33 RecHR 35-37 TimeMin 39-40 TimeSec 42-43 Tolerance $ 45; if tolerance='D'; TotalTime=(timemin*60)+timesec; run;
data _null_;
set sasuser.stress;
Syntax, FILE statement:
FILE file-specification <options> <operating-environment-options>;
|
data _null_;
set sasuser.stress;
file newdat;
run;
Z:sasuser ests.dat
file.
Note that the path specifying the filename and location must be enclosed
in quotation marks. data _null_;
set sasuser.stress;
file 'Z:sasuser ests.dat';
run;
Syntax, PUT statement
using column output:
PUT variable
startcol-endcol...;
|
data _null_; set sasuser.stress; file 'Z:sasuser ests.dat'; put id $ 1-4 name 6-25 resthr 27-29 maxhr 31-33 rechr 35-37 timemin 39-40 timesec 42-43 tolerance 45 totaltime 47-49; run;
file
print
in your DATA step, the PUT statement writes the
lines to the procedure output location.