LIST.ITEM and SORT.ITEM

LIST.ITEM and SORT.ITEM

Top  Previous  Next

 

The LIST.ITEM and SORT.ITEM verbs display data from QM files in its internal format. The LIST.ITEM verb displays records in the order in which they are encountered in the file unless a sort clause in present in the command. The SORT.ITEM verb is equivalent to LIST.ITEM with a final sort by record id.

 

LIST.ITEM {DICT} file.name

{USING {DICT} file.name}

{selection.clause}

{sort.clause}

{record.id...}

{FROM select.list.no}

 

SORT.ITEM {DICT} file.name

{USING {DICT} file.name}

{selection.clause}

{sort.clause}

{record.id...}

{FROM select.list.no}

 

 

 

The output from these verbs displays the record id followed by each field on a separate line. No conversion or formatting is performed on the data. Multivalued data will be displayed with embedded mark characters.

 

The display normally prefixes each field with its field number. Either the COL.SUP or NUM.SUP keywords can be used to suppress this.

 

The ID.SUP keyword can be used to suppress display of the record id.

 

The SCROLL keyword allows scrolling back and forward using the up and down cursor keys.

 

 

Example

 

LIST.ITEM STOCK 16798

 

This command lists the content of record 16798 of the STOCK file.