Visible to Intel only — GUID: GUID-81CA55DF-E729-4806-BAAF-FC87FCF97079
Visible to Intel only — GUID: GUID-81CA55DF-E729-4806-BAAF-FC87FCF97079
I/O Control List
The Input/Output (I/O) control list specifies one or more of the following:
The I/O unit to act upon ([UNIT=]io-unit)
This specifier must be present; the rest are optional.
The following table summarizes details about the I/O control list specifiers and it contains links to their descriptions:
Specifier |
Values |
Function |
---|---|---|
'YES' 'NO' |
Determines whether non-advancing or advancing I/O occurs. |
|
'YES' 'NO' |
Determines whether asynchronous I/O occurs. |
|
'NULL' 'ZERO |
Determines blank interpretation. |
|
'COMMA' 'POINT' |
Determines decimal symbol interpretation. |
|
'APOSTROPHE' 'QUOTE' 'NONE' |
Determines delimiters for character constants. |
|
A branch statement label |
Indicates the statement where execution control transfers to if an end-of-file condition occurs. |
|
A branch statement label |
Indicates the statement where execution control transfers to if an end-of-record condition occurs. |
|
A branch statement label |
Indicates the statement where execution control transfers to if an error condition occurs. |
|
A format statement label or character expression |
Indicates the format of a formatted I/O statement. |
|
An integer variable |
Identifies a data transfer statement. |
|
A scalar character variable |
Indicates a variable to contain an informative message if an error occurs. |
|
A scalar integer variable |
Indicates a variable to contain the completion status of an I/O operation. |
|
A namelist group name |
Identifies a group of data for the data transfer. |
|
'YES' 'NO' |
Determines whether blank padding occurs. |
|
An integer expression |
Indicates the file position in stream I/O. |
|
An integer expression |
Indicates the record number for direct access. |
|
'UP' 'DOWN' 'NEAREST' 'ZERO' 'COMPATIBLE' 'PROCESSOR_DEFINED' |
Indicates the rounding mode. |
|
'PLUS' 'SUPRESS' 'PROCESSOR_DEFINED' |
Indicates the sign mode. |
|
A scalar integer variable |
Indicates the number of characters transferred from a file in formatted input. |
No control specifier can appear more than once, and the list must not contain both a format specifier and namelist group name specifier.
Control specifiers can take any of the following forms:
Keyword form
When the keyword form (for example, UNIT=io-unit) is used for all control-list specifiers in an I/O statement, the specifiers can appear in any order.
Nonkeyword form
When the nonkeyword form (for example, io-unit) is used for all control-list specifiers in an I/O statement, the io-unit specifier must be the first item in the control list. If a format specifier or namelist group name specifier is used, it must immediately follow the io-unit specifier.
Mixed form
When a mix of keyword and nonkeyword forms is used for control-list specifiers in an I/O statement, the nonkeyword values must appear first. Once a keyword form of a specifier is used, all specifiers to the right must also be keyword forms.
- Advance Specifier (ADVANCE=)
- Asynchronous Specifier (ASYNCHRONOUS=)
- Blank Specifier (BLANK=)
- Branch Specifiers (END=, EOR=, ERR=)
- Character Count Specifier (SIZE=)
- Decimal Specifier (DECIMAL=)
- Delimiter Specifier (DELIM=)
- Format Specifier (FMT=)
- Identification Specifier (ID=)
- I/O Message Specifier (IOMSG=)
- I/O Status Specifier (IOSTAT=)
- Namelist Specifier (NML=)
- Padding Specifier (PAD=)
- Position Specifier (POS=)
- Record Specifier (REC=)
- Rounding Specifier (ROUND=)
- Sign Specifier (SIGN=)
- Unit Specifier (UNIT=)