You are on page 1of 2

Changes in GNCMRIQS:

To include the functions that will in turn fetch rule data for RPC processing. The functions should have
the same logic as in WCSMRIOS.
Existing function Existing cursor Functions in GNCMRIQS Cursors to be used in GNCMRIQS
WCSMRIOS-GET-ENTIRE-RULE WCSS995Q GNCMRIQS-GET-RULE-DETAILS GNCJ206Q (new query)
WCSMRIOS-GET-RULE-TYPE WCSS107Q GNCMRIQS-GET-RULE-TYPE WCSS107Q (existing cursor)
WCSMRIOS-GET-RULE-DESC-
TABLE WCSS116Q
GNCMRIQS-GET-RULE-DESC-
TABLE WCSS116Q (existing cursor)
WCSMRIOS-GET-EXCL-RULES :
if rule ID = spaces WCSS980Q GNCMRIQS-GET-EXCL-RULES GNCJ202Q(new cursor)
WCSMRIOS-FETCH-NEXT-
RULES : if rule ID not spaces WCSS990Q
GNCMRIQS-FETCH-NEXT-
RULES GNCJ203Q(new cursor)

Data division changes:
1. Include new cursors GNCJ202Q & GNCJ203Q and its flags for the functions introduced
2. Include DCLGEN for the tables RULE_DESC, RULE_TYPE.
Procedure division changes:
In 00000-MAINLINE paragraph, include new functions in the EVALUATE clause.
EVALUATE TRUE


WHEN GNCMRIQS-GET-RULE-TYPE
PERFORM 07000-GET-RULE-TYPE
WHEN GNCMRIQS-GET-RULE-DESC-TABLE
PERFORM 14000-GET-RULE-DESC-TABLE
WHEN GNCMRIQS-GET-EXCL-RULES
PERFORM 18000-GET-EXCL-RULES
WHEN GNCMRIQS-FETCH-NEXT-RULES
PERFORM 19000-FETCH-NEXT-RULES
WHEN GNCMRIQS-GET-RULE-DETAILS
PERFORM 20000-GET-RULE-DETAILS
END-EVALUATE
Include the new paragraph - 07000-GET-RULE-TYPE to get rule type description using
WCSS107Q cursor.
Include the new paragraph - 14000-GET-RULE-DESC-TABLEto get rule description and its
sequence number using WCSS116Q cursor.
Include the new paragraph - 18000-GET-EXCL-RULESto get rule type description using
GNCJ202Q cursor.
Include the new paragraph - 19000-FETCH-NEXT-RULESto get rule description and its
sequence number using GNCJ203Q cursor.
For each function, logic should be included to open the cursor, fetch the rule details, populate to
the linkage variables and then close the cursor.

You might also like