Procedures Section
The Procedures Section of a Script-IV method consists of one or more independent procedures containing script commands. These procedures are the main body of the script.
Procedures
Section titled “Procedures”A procedure consists of a procedure name followed by one or more script commands. The procedure name:
- identifies the body of commands as a unique procedure within the script.
- must be different from all other procedures in the script and must not conflict with any keywords.
- must begin in column 1, the left-most column of the screen, and must appear on a line by itself.
- can be from 1 through 64 characters long, must not contain space characters, and the first 20 characters must be unique.
- must not be broken or fall onto two lines when referred to by a command.
- can consist of uppercase or lowercase characters, numerals, and the - (hyphen) character.
Main Procedure:
The first procedure in a script is the main procedure and controls all other procedures. When the main procedure is completed, the script automatically terminates and returns to the previous level. If there are no commands in the main procedure, the script will automatically terminate and return without processing further procedures.
Script-IV Commands
Section titled “Script-IV Commands”The Script-IV commands are the core of the Script-IV language. Commands are generally grouped together into a procedure that performs a task. Since the commands tell the system what to do rather than how to do it, the procedure is self-documenting and descriptive of its purpose.
The Script-IV Language Reference provides a detailed description of the Script-IV commands.
Thoroughbred Basic Functions
Section titled “Thoroughbred Basic Functions”The OPENworkshop environment additionally allows Script-IV methods to incorporate Thoroughbred Basic functions. These are particularly valuable in manipulation of date and string variables.
A full description of Thoroughbred Basic capabilities can be found in the Thoroughbred Basic Reference Manual.
From the OPENworkshop Reference, version 8.9.1. Open this page in the PDF