HP 3000 Manuals

SORT [ HP Transact Reference Manual ] MPE/iX 5.0 Documentation


HP Transact Reference Manual

SORT 

Alters or displays the Transact/iX SORT option.

Syntax 

SORT [ON ]
     [OFF]
Parameters 

ON               Turns on the SORT flag to force the OUTPUT verb to sort
                 any records that are selected.  This is the same as
                 issuing a SET(OPTION) SORT statement within the
                 Transact/iX source file.

OFF              Turns off the SORT flag.

Discussion 

This command allows you to change, programmatically, the SORT option to
force sorting of the data for the OUTPUT verb.  If neither ON or OFF is
specified the current value of the SORT option is displayed, and you can
change it.  The items in the LIST register are used for sort keys; the
precedence is set by the order they are listed.  The primary key is the
item that was listed first, the secondary key is the item listed second,
and so on.

Example 

The following example shows how to use the SORT command.

     TRANDEBUG> SORT 

                  SORT FLAG CURRENTLY OFF

      CHANGE OPTION?(Y/N)? N 

     TRANDEBUG> CONTINUE 
     Customer       Dollars Spent
     ----------------------------
     Jane Doe       $201.75
     John Smith     $100.25
     Joe Customer   $ 21.45

                BREAKPOINT ENCOUNTERED, EXECUTION STOPPED:

                    SYSTEM          SEGMENT       OFFSET
                    ------------------------------------
                1. PARENT                0           28

     TRANDEBUG> SORT ON 

     TRANDEBUG> CONTINUE 
     Customer       Dollars Spent
     ----------------------------
     Joe Customer   $ 21.45
     Jane Doe       $201.75
     John Smith     $100.25

                BREAKPOINT ENCOUNTERED, EXECUTION STOPPED:

                    SYSTEM          SEGMENT       OFFSET
                    ------------------------------------
                1. PARENT                0           28

     TRANDEBUG> SORT OFF 



MPE/iX 5.0 Documentation