To specify a formdepth formula, use the following syntax.
The parameters used in the syntax diagram are explained in the following table.
Parameter | Description |
---|---|
hexpair | A hexadecimal pair. Two hexadecimal "digits" (0-9, A-F), representing an EBCDIC output character value. |
( | Begin calculation mode. Glb.FormDepth (current value of formdepth) is moved into current work value. |
operator | Operator for current work value. One of *, +, -, or / * Multiply work value by following digit m + Add following digit m to work value - Subtract following digit m from work value / Divide the work value by the following digit m. Any extraneous decimal characters are truncated. |
m | Used in calculation mode with operator and current work value. One numeric digit, 1–9. |
N | Output the current work value with decimal representation as an alphanumeric string of length length. |
length | Length of current work value output string. One numeric digit, 1–9. |
H | The following hexadecimal pair is to be output a number of times given by the current work value. |
B 1 | Convert current work value to binary and output as one byte. B is always followed in the formula by the digit 1. |
) | End calculation mode. |
For non-ROC, the resulting Formdepth output sequence is automatically sent to the output device before Report output, unless the result is the same as that previously sent to that device. For ROC, the Formdepth output sequence is unconditionally sent to the output device.