Occurs Checking Number

The number of occurs is described by the occurs checking number. You do not need to define the exact number of occurs for each parameter. Use the table below to select the occurs checking number which best describes the number of occurs of the parameters and result.

Number of Occurrences  
First Parameter Second Parameter Result Occurs Checking Number

1

1

1

0

any

any

1

1

any

any

sum of parameter occurs

2

any

1

same as first parameter

3

1

any

same as second parameter

4*

any

any

same as first parameter

5

any

1

1

6

any

any

up to 128

7†

1

1

up to 128

8†

For C datatypes, the number of occurs must be interpreted differently:

Number of occurs = length x occurs in QA Build program

* Do not use checking number 4. This is reserved for functions built into QA Build

† Except for result type C, avoid occurs checking numbers 7 and 8 as they require a lot of QA Build's internal stack