HP 3000 Manuals

FIND [ HP TRANSACT Quick Reference Guide ] MPE/iX 5.5 Documentation


HP TRANSACT Quick Reference Guide

FIND 

[REV BEG]FIND[(modifier)] source[,option-list];[REV END]

     MODIFIERS 
     none    - Retrieves from master set
     CHAIN   - Retrieves from detail set or KSAM file
               based on key[REV BEG]
     CURRENT - Retrieves last entry accessed from KSAM or MPE file or data set[REV END]
     DIRECT  - Retrieves entry at specified record number
     PRIMARY - Retrieves from master set at the primary location
     RCHAIN  - Same as CHAIN only reverse order for data set;
               same as CHAIN for KSAM file
     RSERIAL - Same as SERIAL only reverse order for data set;
               same as SERIAL for KSAM or MPE file
     SERIAL  - Retrieves entries in serial mode

     SOURCES 
     file-name 
     set-name[(base-name)]

     OPTIONS 
     ERROR=label[([item-name])]
     LIST=(range-list)
     LOCK
     NOMATCH
     NOMSG
     PERFORM=label 
     RECNO=item-name[(subscript)]
     SINGLE
     SOPT

SORT=(item-name1[(ASC)][,item-name2[(ASC)]...])
                [(DES)]            [(DES)]
     STATUS
     WORKFILE

Example 

     FIND(SERIAL) CUST-M,LIST=(CUSTNUM),
                  SORT=(CUSTNUM),PERFORM=PARA;



MPE/iX 5.5 Documentation