z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


CLOSFILE statement

z/OS TSO/E CLISTs
SA32-0978-00

Use the CLOSFILE statement to close a QSAM file that has been previously opened by an OPENFILE statement. Only one file can be closed with each CLOSFILE statement.

Note: The CLOSFILE statement must be issued in the same CLIST as the corresponding OPENFILE statement.
Read syntax diagramSkip visual syntax diagram
>>-+--------+--CLOSFILE--+-file_name---------------+-----------><
   '-label:-'            '-&symbolic_variable_name-'   

label
A name the CLIST can reference in a GOTO statement to branch to this CLOSFILE statement. label is one-to-31 alphanumeric characters, beginning with an alphabetic character.
file_name | symbolic_variable_name
file_name
is the file name (ddname) assigned to the file (data set) when it was allocated in the current session.
symbolic_variable_name
is the symbolic variable to which you assigned file_name.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014