QSELECT

Man Page Index


Generates a select list from the fields of specified items and makes it the current active (default) list.

 

SYNTAX

QSELECT {{file-name} record-list} {(n}

 

SYNTAX ELEMENTS

file-name specifies the source file name.

record-list is a list of record keys, or an asterisk (*) to signify all records.

n is the field number in each record, from which the list is to be created. If n is not specified, all the fields in the source records will be used to generate the list elements.

 

NOTES

If you issue the QSELECT command without specifying an record list, you will be prompted to supply one.

QSELECT is similar to the FORM-LIST command but has the additional capability of creating a list from more than one source record. Also, FORM-LIST creates a list from all the attributes of a single record, QSELECT can create a list from multiple records, and you can specify that each record is only to contribute one field.

 

EXAMPLE 1

:QSELECT SALES * (3
4000 records selected
>SAVE-LIST CUSTOMERS

Creates a list containing the values from field 3 of all the records in the SALES file. The list is then saved as CUSTOMERS.

 

EXAMPLE 2

:QSELECT SALES "ABC" "DEF" "GHI" (3
3 records selected
>SAVE-LIST CUSTOMERS

Creates a list containing the values from field 3 of records ABC, DEF and GHI in the SALES file. The list s then saved as CUSTOMERS.


LIST