The following example uses the INPUT
statement to read in instream data:
data weight;
input PatientID $ Week1 Week8 Week16;
loss=Week1-Week16;
datalines;
2477 195 177 163
2431 220 213 198
2456 173 166 155
2412 135 125 116
;
Note: A semicolon appearing alone
on the line immediately following the last data line is the convention
that is used in this example. However, a PROC statement, DATA statement,
or global statement ending in a semicolon on the line immediately
following the last data line also submits the previous DATA step.