HP Fortran Programmer's Reference (September 2007)

Program units and procedures
Modules
Chapter 7192
Generic names
Namelist groups
USE statement
The USE statement provides access to module entities within the using program unit—that is,
the program unit in which the statement is specified. The USE statement specifies the name of
the module that the program unit wants to access. The information in the specified module is
made accessible to the program unit by use association. The USE statement must appear at
the head of the specification part of a program unit.
The USE statement can take either of two forms:
USE
module-name
[,
rename-list]
USE
module-name
, ONLY :
access-list
where:
rename-list
is a comma separated list of:
local-name
=>
module-entity-name
module-entity-name
is the name of a module entity.
local-name
is the name by which
module-entity-name
will be accessed within the
using program unit.
access-list
is a comma-separated list of:
[
local-name
=>]
module-entity-name
As shown in the syntax description, the USE statement provides a renaming feature that
allows module entities to be renamed within a using program unit. The association between
local-name
and
module-entity-name
is conceptually similar to argument association: the
one name is an alias for the other, and the association between the two is in effect only within
the using program unit.