Changing the sequence of displayed or printed rows
To change the order in which rows are displayed or printed, use the Order field and, optionally, the A/D field on the Column Selection/Edit panel. For the most significant column, type “1” in the Order field; for the next most significant column, type “2” in the Order field, and so on. If you use the Order field, rows are displayed in ascending sequence by default. To display the rows in descending sequence, type “D” in the A/D field.
If you use either the Order or A/D fields on the Column Selection/Edit panel, FM/Db2 adds an ORDER BY clause to the SQL SELECT statement used to retrieve the data from Db2®.
For example, on the Column Selection/Edit panel shown in Primary Column Selection/Edit panel showing row sequence selection, the Order and A/D fields specify
rows to be shown in the sequence LASTNAME (ascending) within WORKDEPT (descending).
When the data is displayed, it appears in the revised sequence:
Related references