Fetch every row

*
*     FETCH EVERY ROW FROM A TABLE
*
      MOVE 'GN'                       TO xxxx-COMMAND.
      MOVE ZERO                       TO xxxx-COUNT.
*
*     NOTE: THE FIRST GN CALL SETS THE FOUND CODE AS THE CONTROL FOR
*     THE LOOP.
*            (IT MAY BE AN EMPTY TABLE).
*
      PERFORM CALL-TBLBASE.
      PERFORM PROCESS-RETRIEVED-ROW UNTIL xxxx-FOUND = 'N'.
       ...
 CALL-TBLBASE.
     CALL 'TBLBASE' USING         TB-PARM
                                  xxxx-COMMAND-AREA
                                  xxxx-ROW-AREA.
 CALL-TBLBASE-EXIT.
     EXIT.
      ...
 PROCESS-RETRIEVED-ROW.
*    DO APPLICATION PROCESSING FOR THIS ROW, THEN GET ANOTHER
*    ROW...
      ...
     PERFORM CALL-TBLBASE.
 PROCESS-RETRIEVED-ROW-EXIT.
     EXIT.