>>-ORDER--BY(data-area)--LENGTH(data-value)---------------------> >--RESULT(cpsm-token)--THREAD(cpsm-token)--RESPONSE(data-ref)---> >--REASON(data-ref)--------------------------------------------><
This command sorts the resource table records in a result set into a user-specified order.
COPY, GET, GETDEF, GROUP, LOCATE, PERFORM OBJECT
An order expression is a list of attributes to be used in sorting the resource table records. For example:
CICSSYS,TRANID.
where the attribute names are separated by commas or blank spaces and the whole expression ends with a period.
In this example, the resource table records are sorted using CICS® system name as the primary sort key and transaction ID as the secondary key. The default sort order is ascending. To sort attribute values in descending order, add /D to the end of the attribute name.
For more information on using order expressions with the ORDER command, see CICSPlex® System Manager Application Programming Guide.
The following is a list of the RESPONSE values that can be returned by the ORDER command. The description of each RESPONSE includes a list of associated REASON values, if appropriate.