FORTRAN Reference Manual

Summary of HP Extensions
FORTRAN Reference Manual528615-001
1-2
Character Set and Identifier Names
Character Set and Identifier Names
The HP FORTRAN character set includes the following symbols that are not part of the
ANSI standard character set:
_ for use in names
% to designate octal integers
^ for use in RECORD references and section names
? to identify a line of source that contains compiler directives
\ for pass-by-value parameters
" for defining the string that the PAGE directive prints at the top of each page
For additional information, see Section 2, Language Elements.
The names of external subprograms, common block names, variables, arrays, and
statement functions can be up to 31 characters long.
Data Types
You can declare word, doubleword, or quadrupleword INTEGER entities and word or
doubleword LOGICAL entities. For additional information, see Section 2, Language
Elements.
You can use Hollerith constants in DATA statements or as actual arguments in CALL
statements. See Section H, Hollerith Constants and Punch Card Codes.
Using the RECORD and END RECORD statements, you can declare RECORD
structures that mix different data types in one record and support the processing of
database records. For additional information, see Section 2, Language Elements.
Procedures
HP FORTRAN supports recursive subprograms. For additional information, see
Section 4, Program Units.
Input and Output Operations
You can mix numeric data for real and integer entities: on input, numeric data is
automatically converted to the data type of the corresponding input list item; on output,
numeric data is converted to the data type required by the format specification. For
additional information, see Section 5, Introduction to File I/O in the HP NonStop
Environment.