Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The first block of executable commands requests that the user input a customer name and then builds a list of all customers that have a generically identical name.

  • The first DISPLAY command displays the list built by the first block of code. When displayed the list would look something like this:

     Sel     Customer name

      _      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX     

      _      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX     

                Sel     Customer name

                 _      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX     

                 _      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX     

                 _      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         _      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX      

         Note the input capable "Sel" column. This resulted from assigning the *SELECT attribute to field #CHOOSE.

...

  • Note that like the first example the commands request that a "date order due" be input. A list of all associated orders is then built and displayed. When displayed the list would look something like this:

     Sel     Order     Date Due

                Sel     Order     Date Due

                       _     9999999     99/99/99           

                 _     9999999     99/99/99     

                       _     9999999     99/99/99           

                 _     9999999     99/99/99 99     

  • The SELECTLIST / ENDSELECT loop requests that all entries in the list that have a non-blank value in field #CHOOSE be processed. However, the loop also acts upon the content of field #CHOOSE to display customer, line item, payment history or status information about the order.