GNP and GHNP control statement

These statements make FABHTEST issue a specified number of get-next-within-parent (GNP) or get-hold-next-within-parent (GHNP) calls.

If no segment name is specified, GNP or GHNP calls without SSA are issued. If a segment name is specified, GNP or GHNP calls with an unqualified SSA are issued.

Prerequisite: Before specifying the GNP or the GHNP statement, you must establish a valid parentage by specifying a GN, GHN, GNR, GHNR, GU, or GHU statement.
0........1.........2.........3.........4.........5.........6.........7.........8
12345678901234567890123456789012345678901234567890123456789012345678901234567890

GNP GE         seg_name
GHNPGE         seg_name
    n          seg_name
Position
Description
1
Code the GNP or the GHNP keyword to identify this as a get-next-in-parent control statement or a get-hold-next-in-parent control statement.
5
Code one of the following optional keywords:
GE
FABHTEST issues GNP or GHNP calls until the end of the segment occurrence under the current parent.
n
The number of GNP or GHNP calls that FABHTEST issues. Code a number containing up to 10 digits, left-aligned. Leading zeros are not necessary.
Blank
FABHTEST issues 1 GNP or GHNP call.
16
Code one of the following optional keywords:
seg_name
Code the name of a segment. FABHTEST issues GN or GHN calls with an unqualified SSA.
Blank
FABHTEST issues GN or GHN calls without an SSA.