*CPSD - Compare Programs
Purpose
This utility compares two programs and produces a listing on the printer of all the changes that would have to be made to make one program identical with the other.
Procedure
To run this utility from Thoroughbred Basic Console Mode, type:
RUN “*CPSD” and press Enter.
To select this utility from the Thoroughbred Basic Utilities Menu, type one of the following:
C and press Enter.
*C and press Enter.
*CPSD and press Enter.
Menu option # and press Enter.
The following message is displayed:
SELECT PRINTER: xx xx: (where xx is a configured printer)
Make your printer selection from the list of available printers displayed in the prompt. Printers displayed in background mode are currently being used by another task and, therefore, are unavailable. If the printer requested cannot be opened, the user is prompted to make another selection. If only one printer is configured that printer is automatically selected.
DISK NAME OR NUMBER:
OLD PROGRAM:
Enter the name of the program to be updated. Program names are any string of 8 characters or less used to name a program and its program file. If the specified program cannot be opened, or if it is not a program, the user is prompted to enter another name. When a valid name is entered, the system prompts:
DISK NAME OR NUMBER
NEW PROGRAM
Enter the name of the program to be used for the comparison. If the program name entered is not valid (i.e., not a program, not on the disk, etc.), the user is prompted to enter another.
Notes
This utility detects three types of changes:
- If a statement exists in the old program, but not in the new program, a delete line is printed.
- If a statement exists in the new program, but not in the old program, an add line is printed.
- If a statement exists in both programs, but its contents have changed, a change message is printed.
If no differences are found, the message PROGRAMS ARE IDENTICAL is displayed.
Error Messages
- ERROR xx HAS OCCURRED, CR TO RETRY
- An unexpected error has occurred, probably I/O related.
- PRINTER IN USE
- The requested printer is being used by another task; select another.
- PRINTER NOT READY
- The requested printer is off-line (i.e., not turned on, out of paper, out of toner, etc.). Correct the problem and try again, select another printer, or press F4 to return to the Utilities Menu.
- xxxxxxxx IS UNINITIALIZED OR BLANK
- The specified program is empty and cannot be compared. Type another program name.
From the Thoroughbred Basic Utilities, version 8.9.1. Open this page in the PDF