Language Reference
INFILE Statement
INFILE operand <options>;
This statement is supported only by the IML procedure.
The INFILE statement opens an external file for input or, if the file is already open, makes it the current input file. A subsequent INPUT statement reads from the specified file.
The arguments to the INFILE statement are as follows:
- operand
is either a predefined file name or a quoted string that contains in parentheses the file name or character expression that refers to the path name.
- options
are explained in the following list.
The valid values for the options argument are as follows:
The following keywords control how a program behaves when an INPUT statement tries to read past the end of a record. The default behavior is STOPOVER.
Several examples of INFILE statements follow:
filename in1 "student.dat"; /* specify file name IN1 */
infile in1; /* infile path name */
infile "student.dat"; /* path by quoted literal */
infile "student.dat" missover; /* use missover option */
See Chapter 7 for further information.