INQPCOPN (Fortran only)

Derivation: INQuire the Pre-Connected units that are OPeNed

INQPCOPN controls if the OPENed specifier on an INQUIRE by unit statement can be used to determine if a preconnected unit has had any I/O statements directed to it.

The default for non-CICS applications is INQPCOPN.

INQPCOPN is ignored under CICS®.

Read syntax diagramSkip visual syntax diagram
Syntax

   .-INQpcopn---.   
>>-+-NOINQpcopn-+----------------------------------------------><

INQPCOPN
Causes the running of an INQUIRE by unit statement to provide the value true in the variable or array element given in the OPENED specifier if the unit is connected to a file. This includes the case of a preconnected unit, which can be used in an I/O statement without running an OPEN statement, even if no I/O statements have been run for that unit.
NOINQPCOPN
Causes the running of an INQUIRE by unit statement to provide the value false for the case of a preconnected unit for which no I/O statements other than INQUIRE have been run.