If you are unfamiliar with the standard INFILE statement,
see
SAS Statements: Reference for more information.
A standard INFILE statement
specifies an external file to be read by an INPUT statement. A CA-IDMS
INFILE statement specifies a subschema, which in turn identifies the
CA-IDMS database, records, and elements to be accessed with CA-IDMS
calls. Special extensions in the CA-IDMS INFILE statement specify
SAS variables and constants that are used to build a CA-IDMS call
and to handle the data returned by the call. A subset of the standard
INFILE statement options can also be specified in a CA-IDMS INFILE
statement.
Use the following syntax
when you issue a CA-IDMS INFILE statement:
INFILE SUBSCHname IDMS <options>;
SUBSCHname
specifies the name
of the subschema used to communicate with CA-IDMS in the current DATA
step. A subschema name is required and must immediately follow INFILE.
(A standard INFILE statement would specify a fileref in this position.)
You can open only one subschema per DATA step.
IDMS
tells SAS that this
INFILE statement refers to a CA-IDMS database. IDMS is required and
must follow the subschema name.
options
usually define SAS
variables that contain CA-IDMS information used to generate DML calls.
These variables are not added automatically to a SAS output data
set (that is, they have the status of variables that are dropped).
To include the variables in an output SAS data set, create separate
variables and assign values to them. The variables do not need to
be predefined before specification in the CA-IDMS INFILE statement.
SAS defines them automatically with the correct type and length.
The following sections describe the options that are valid in the
INFILE statement.