TIRFVRFY

TIRFVRFY is a called module supplied with CA Gen. TIRFVRFY is called every time an CA Gen action diagram uses the VERIFY function.

VERIFY determines if any character in one text string is also found in a second text string. If a character in the first string is not found in the second string, the value of the position of that character is returned. If all characters in the first string are also found in the second string, a zero value is returned.

VERIFY generates the following COBOL statements:

Statement

Quantity

Call

1

Compute

2

Move

7

Initialize

1

IF

1

Heavy use of VERIFY can drastically increase CPU costs.

Hints

If an action diagram uses VERIFY more than once for the same text strings:

  • use VERIFY once for the desired text strings

  • save the result in a local view

  • use the local view instead of VERIFY for the remaining instances

  • pass the local view to the import view of any called action diagrams that need it.

If VERIFY is used in an action diagram that uses several CA Gen functions, or the action diagram has high CPU usage due to VERIFY, consider converting the action diagram to an external action block.