LOAD Verb - Load File

Syntax

LOAD fileid

Description

The LOAD verb locates the program specified by fileid on disk (or in ADDR space - see SETOPTS) and loads it into the workspace. It can be used in console mode only.

Parameter

Description

fileid

Program to be loaded into the workspace.

The new program replaces any program already in the workspace. PRO/5 performs a special hash check to ensure the integrity of the program. (This may be disabled through the SETOPTS verb. See the SETOPTS verb for additional information.) If the load is successful, PRO/5 performs a RESET and sets the interpreter to begin with the first statement of the program.

The following errors may result:

  • fileid may not exist.

  • fileid may not be a program.

  • fileid may have a corrupted header.

  • fileid may be too large to load into the current workspace.

  • A disk problem such as a read error may occur while loading the program.

  • The program hash may indicate a damaged program.

The current workspace remains intact for the first four types of errors. If the fifth or sixth type of error occurs, the workspace program is initialized to an "empty" program before reporting the error to the user.

!ERROR=31 indicates that insufficient memory is available. Try a larger START size to correct it.

LOAD has no effect on the user data area or user files.

Examples

>LOAD "TEST.BBX"

See Also

Data Server Syntax

Verbs - Alphabetical Listing