1. Home
  2. RESUME directive

RESUME directive

Restarts a recorded job.

Options

CHANNEL = scalar Channel number of the backing-store file where the information was dumped; default 1
CLOSE = string token Whether to close the file afterwards (yes, no); default no

No parameters

Description

RESUME recovers the information stored by a previous RECORD statement so that you can continue your use of Genstat as though nothing had happened in between. Genstat deletes all the data structures that were created in the current job prior to RESUME, and reinstates the data structures that were available in Genstat at the time the RECORD statement took place. In addition, the current graphics settings are replaced by those that were in force when RECORD was used, but any external files that are attached to Genstat remain unaffected.

If the RECORD directive was used within a procedure or a FOR loop, the job is not resumed at that point. Instead, it restarts at the statement after the procedure call, or after the outermost ENDFOR statement.

The CHANNEL option specifies the channel to which the file has been connected (this can be done using the OPEN directive). You can set the CLOSE option to yes to close the file after the information has been recovered.

Options: CHANNEL, CLOSE.

Parameters: none.

See also

Directives: RECORD, OPEN.

Commands for: Input and output.

Example

" Example 1:3.6.2 "
OPEN 'DUMP.GBS'; CHANNEL=1; FILETYPE=backingstore
VARIATE [VALUES=1,2] A
RECORD
PRINT A
CLOSE 1; FILETYPE=backingstore
ENDJOB
OPEN 'DUMP.GBS'; CHANNEL=1; FILETYPE=backingstore
RESUME
CALCULATE A = A+1
PRINT A
CLOSE 1; FILETYPE=backingstore; DELETE=yes

Updated on March 5, 2019

Was this article helpful?