Statements and attributes

This section provides an alphabetical reference to all XL Fortran statements. The section for each statement is organized to help you readily access the syntax and rules, and points to the structure and uses of the statement.

The following table lists the statements, and shows which ones are executable, which ones are specification_part statements, and which ones can be used as the terminal statement of a DO, Fortran 2008 beginsDO CONCURRENTFortran 2008 ends, or DO WHILE construct. The executable statements, specification statements, and terminal statements are marked with "√".

Table 1. Statements table
Statement Name Executable Statement Specification Statement Terminal Statement
ABSTRACT  1     
ALLOCATABLE  1     
ALLOCATE  
ASSIGN    
ASSOCIATE  1     
ASYNCHRONOUS  2     
AUTOMATIC  2     
BACKSPACE  
BIND  1     
BLOCK  3       
BLOCK DATA      
BYTE  2     
CALL  
CASE    
CHARACTER    
CLASS  1     
CLOSE  
COMMON    
COMPLEX    
CONTAINS      
CONTIGUOUS  3     
CONTINUE  
CYCLE    
DATA    
DEALLOCATE  
Derived Type      
DIMENSION    
DO    
DO CONCURRENT 3     
DO WHILE    
DOUBLE COMPLEX  2     
DOUBLE PRECISION    
ELSE    
ELSE IF    
ELSEWHERE    
END    
END ASSOCIATE  1     
END BLOCK DATA      
END DO  
END ENUM  1     
END IF    
END FORALL    
END FUNCTION    
END INTERFACE    
END MAP  2     
END MODULE      
END PROGRAM    
END SELECT    
END SUBMODULE  3       
END SUBROUTINE    
END STRUCTURE  2     
END TYPE    
END UNION  2     
END WHERE    
ENDFILE  
ENTRY    
ENUM  1     
ENUMERATOR  1     
EQUIVALENCE    
ERROR STOP  3     
EXIT    
EXTERNAL    
FLUSH  1   
FORALL  
FORMAT    
FUNCTION      
GO TO (Assigned)    
GO TO (Computed)  
GO TO (Unconditional)    
IF (Arithmetic)    
IF (Block)    
IF (Logical)  
IMPLICIT    
IMPORT  1     
INQUIRE  
INTEGER    
INTENT    
INTERFACE    
INTRINSIC    
LOGICAL    
MAP  2     
MODULE      
MODULE PROCEDURE  3       
NAMELIST    
NULLIFY  
OPEN  
OPTIONAL    
PARAMETER    
PAUSE  
POINTER (Fortran 90)    
POINTER (integer)  2     
PRINT  
PRIVATE    
PROCEDURE  1     
PROGRAM      
PROTECTED  1     
PUBLIC    
READ  
REAL    
RECORD  2     
RETURN    
REWIND  
SAVE    
SELECT CASE    
SELECT TYPE  1     
SEQUENCE    
Statement Function    
STATIC  2     
STOP    
SUBMODULE  3       
SUBROUTINE      
STRUCTURE  2     
TARGET    
TYPE    
Type Declaration    
Type Guard  1     
UNION  2     
USE    
VALUE  1     
VECTOR  2     
VIRTUAL  2     
VOLATILE    
WAIT  1   
WHERE  
WRITE  
Notes:
  •  1  Fortran 2003
  •  2  IBM extension
  •  3  Fortran 2008

Assignment and pointer assignment statements are discussed in Expressions and assignment. Both statements are executable and can serve as terminal statements.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us