Download CAT Manual - Marble Computer

Transcript
PERFORMs are broken into four categories as follows:
PERFORM
(with or without THRU option)
PERFORM VARYING
PERFORM UNTIL
(with NO VARYING clause)
PERFORM nnn TIMES
The type of PERFORM is identified to the right of the PERFORM name, except for the first
typical type of PERFORM without the VARYING, UNTIL, or TIMES clause. When there are
multiple types of PERFORMs in any one range, besides an overall count of the number of
PERFORMs, there will be a count for each category of VARYING, UNTIL, or TIMES following
the main count.
Indenting is done back and forth. Excessive indenting will be stopped from going further if there
is not room to keep indenting.
QVW Backward Tracing
Backward Tracing is available from any PERFORMED routine within the program, with the
exception of PROGRAM-ENTRY as it is impossible to go backward from the beginning of the
program.
The following image shows forward tracing from a routine labeled E-FORMAT-OUTPUTRECORD. Notice the checkbox available highlighted in yellow named ‘Do Backward Tracing’.
Using yellow highlighted checkbox to invoke Backward Tracing
The two comments on the first two lines basically are there as a form of help. Clicking
on the checkbox to do backward tracing is used to do backward tracing from the routine
E-FORMAT-OUTPUT-RECORD. Using this checkbox is designed to answer the
25