The PRINT statement accepts the following arguments.
f is a format identifier and can be:
An asterisk (*), which indicates list-directed I/O. See "List-Directed I/O " on for more information.
The label of a FORMAT statement that appears in the same program unit.
An integer variable name that has been assigned the label of a FORMAT statement that appears in the same program unit.
A character expression or integer array that specifies the format string. The integer array is nonstandard. @
iolist can be empty or can contain output items or implied DO lists. The output items must be one of the following:
Variables
Substrings
Arrays
Array elements
Record fields
Any other expression
A simple unsubscripted array name specifies all of the elements of the array in memory storage order, with the leftmost subscript increasing more rapidly.
Implied DO lists are described on "Implied DO Lists".
The second form of the PRINT statement is used to print the items of the specified namelist group. Here, grname is the name of a group previously defined by a NAMELIST statement.
Execution proceeds as follows:
The format, if specified, is established.
If the output list is not empty, data is transferred from the list to standard output.
If a format is specified, data is edited accordingly.
In the second form of the PRINT statement, data is transferred from the items of the specified namelist group to standard output.