Adding the Subsidiary Procedures

To complete the menu-driven enquiry program, you must attach the customer number (C_NO_ENQUIRY) and customer name (C_NAME_ENQ) procedures underneath the menu procedure.

To attach the subsidiary procedures to the menu procedure:

  1. Return to the procedure tree. Press <↓> to extend the procedure tree beneath the menu procedure, and press <Insert>. An M appears on the tree and you are prompted for the option number; 1 is suggested as a default. Accept the default and enter the procedure name as C_NO_ENQUIRY

  2. To complete your program, add the other procedure as option 2. Press the <→>, select Link, accept the default option number 2 and enter C_NAME_ENQ as the procedure name

Finally, compile and run your program.