$DSI SORT {DATABASE-PREFIX}
$DSI SEQUENCE {}
$DSI CHANNEL {DATABASE-CHANNEL}
$DSI DESCRIBE {DESCRIBE-FILE}
$DSI BY {FIELD-NAME} {DESCENDING}
$DSI BY {FIELD-NAME} {/TYPE=STRING/LEN=20}
$DSI KEY {KEY-TO-READ-BY}
$DSI CHECK {FIELD-TO-CHECK-FOR-LOW/HIGH}
$DSI LOW {LOW-KEY-VALUE}
$DSI HIGH {HIGH-KEY-VALUE}
$DSI LOCK
$DSI WORK_ACCESS
$DSI SELECT
$DSI STATISTICS
! SELECTION STATEMENTS
DSI$_RECORD_SELECTED = TRUE IF {SELECTION CRITERIA}
$DSI END SORT
$DSI START GET
! PROCESSING FOR EACH RECORD
$DSI END GET
|