DTRHELP.HLB  —  Commands Statements Clauses, QUERY NAME Clause
       Specifies an alternate name for the field name.

       Format

         QUERY_NAME  [IS]  query-name

1  –  Argument

    query-name

       Is the query name. The rules for forming and using a query name
       are the same as those for a field name.

2  –  Examples

       The following example shows how to set up a record so that DISP
       is defined as an alternate name for the DISPLACEMENT field:

       06 DISPLACEMENT PIC 99999
          QUERY_NAME IS DISP.

       The following example shows how to set up a record so that
       SPECS is defined as an alternate name for the group field
       SPECIFICATIONS:

       03 SPECIFICATIONS
          QUERY_NAME SPECS.

       The following example shows how to set up a record so that
       a query name of SPECIAL_HANDLING is defined for the field
       DELINQUENT_ACCOUNT_STATUS:

       09 DELINQUENT_ACCOUNT_STATUS
          PIC X
          QUERY_NAME IS SPECIAL_HANDLING.
Close Help