Open System Testing Architecture

TOC PREV NEXT INDEX



CLOSE Command

Description:

This command closes an external data file. The file must have already been opened by the OPEN command.

The "ON ERROR GOTO err_label" clause can be specified to define a label to which control should be transferred in the event of an error.

Format:
 CLOSE fileid {{,}ON ERROR GOTO err_label}
Parameters:
fileid

The name associated with the file when it was opened.

err_label

A label defined within the current scope of the script, to which control branches if an error occurs.

Example:
 CLOSE datafile ON ERROR GOTO Close_error

See also:

File Handling Commands


CYRANO
Customer Support: France +33 (0) 1 56 33 40 00
USA +1 (978) 462-0737; Toll free 800-714-4900
UK +44 (0) 1274 761024
support-fr@cyrano.com
support-us@cyrano.com
support-uk@cyrano.com
TOC PREV NEXT INDEX