Execution Phase
Initializing Variables
At the
beginning of the execution phase, the value of _N_ is 1. Because there
are no data errors, the value of _ERROR_ is 0.
filename invent 'Z:\sasuser\invent.dat';
data work.update;
infile invent;
input Item $1-13 IDnum $15-19
InStock 21-22 BackOrd 24-25;
Total=instock+backord;
run;
The remaining variables
are initialized to missing. Missing numeric values are represented
by periods, and missing character values are represented by blanks.
INFILE Statement
The INFILE statement identifies the location of the raw
data.
filename invent 'Z:\sasuser\invent.dat';
data work.update;
infile invent; input ...
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.