Close STATEMENT

PURPOSE:  The CLOSE statement closes access to an auxiliary Data Set (DS) object.  The OPEN and CLOSE statements make it possible to access a DS and release it at some point during the execution of a Process Module (PM).  It also makes the DS available to other users during the rest of the PM execution.  The DS can thus be used to contain information about the availability of other primary DS’s.

SYNTAX

CLOSE \\designators\\ [HUSH] [IF; UNLESS clause] [iterate clause]

designators

is one of the auxiliary DS’s that were related with the DEFER OPEN option.

Example

00750 CLOSE AUX1 HUSH IF QTY = 0

NOTES:  Refer to the OPEN statement for more information and examples of the OPEN and CLOSE statements.

SEE ALSO:  OPEN, RELATE, GET, PUT, CREATE and READY