11.3.5 PRIVATE Directive (VAX only)

The PRIVATE directive specifies the common blocks and symbols that must be unique for each process that runs the parallel DO-loop. It takes the following form:

cPAR$ PRIVATE name [,name] . . .
c
Is the letter or character that introduces the directive tag (see Section 11.1).
name
Is the name of a symbol or a common block (preceded and followed by a slash). Common block names cannot exceed 26 characters; they can be blank. Symbols can be any variable name (scalar, array, or record) that is declared within the routine.

Rules and Behavior

PRIVATE directives can appear anywhere within declaration statements in the routine.

Arrays cannot be dimensioned within this directive.

Elements contained in a common block cannot be declared PRIVATE.

Common blocks that are declared PRIVATE cannot also be declared SHARED.

Symbols declared PRIVATE cannot also be declared CONTEXT_SHARED.

Symbols can only be declared PRIVATE in routines containing a parallel DO-loop.

Dummy arguments cannot be declared PRIVATE.

SAVE statements cannot refer to PRIVATE symbols or common blocks.

For More Information:

For details on how to use the PRIVATE directive, see Example 11-2.


Previous Page Next Page Table of Contents