:CLOSE_PROCESS
Use the :CLOSE_PROCESS script statement to discard a data sequence in a script. Discarding the data sequence releases memory and lets you assign new values to script variables that include a reference to a data sequence. After you have closed a process, the script variable is empty again.
Syntax
:CLOSE_PROCESS Data sequence reference
Parameters
| Parameter | Description | Format |
|---|---|---|
| Data sequence reference | Defines the script variable that references the data sequence to discard. | Script variable |
Examples
The following script stores a reference to a data sequence in a script variable (&HND#), writes the retrieved content into a file for a subsequent job, and then discards the data sequence.
:SET &HND# = PREP_PROCESS_VAR('TEST.VAR')
:SET &RET# = WRITE_PROCESS(&HND#, &fullfile#, &agent#, &login#)
: CLOSE_PROCESS &HND#
Related Topics
Script Elements for Data Sequences
See also: