access.sselect

Verb: Access/Access: Verbs, Releases: AP and R83

Creates sorted list of items meeting specific criteria.

Syntax

sselect file.reference {itemlist} {sellist} {seqlist} {outlist} {modlist}

Description

creates a sorted list of items from the specified file.reference that meet selection criteria.

The list is a temporary list that is used by the next verb as its implicit item.list. The list can be permanently saved by the 'save-list' verb. The list can also be passed to an OP command or to a Pick/BASIC program if the next TCL command executes that program.

When an 'outlist' appears in a select-class statement, the list is built from the contents of the specified attribute(s).

The elements of the list may be used as item-ids to reference data in any file, not just the file referenced in the sselect command. For example, if a 'sselect' on one file is followed by a 'list' on a different file, the list of item-ids generated by the sselect are used as an item.list in the 'list'.

In the special case where the 'sselect' verb is used with a 'by-exp' or 'by-dsnd-exp' modifer, the elements of the list are multi-valued, where the first value is the selected data, and the second value is the three-digit value count. In Pick/BASIC, the two values are retrieved by the use of the 'readnext id,vc' form of the 'readnext' statement.

Options

j Suppresses all messages. ('n' items selected, etc.)

s Activates a 'secondary' list.

w Bypasses index selection.

Example

sselect invoices with amount.due > '0' and with no payment

Creates a list of invoice item0ids which have an amount.due > o, and which
have not made a payment. The list is sorted by invoice item-id.

sselect entity by name with name = 'PICK]' name

Creates a list of entity names which start with the string 'PICK'
sorted in name order.

See Also

Command Name Type Description
access.seqlist Definition Definies collation sequence.
access.sellist Definition Defines selection criteria portion of an Access sentence.
access.selection.criteria Definition Description of Access selection criteria.
secondary.list Definition A list of item-id's generated by one of the list-generating processes while an active list is present.
access.select Verb: Access Creates list of items meeting specific criteria.
access.options Definition Standard options: b,c,d,h,i,j,k,n,p,r,s,u,y
active.list Definition A list of strings delimited by attribute marks created by one of the list-generating processes.
secondary.list Definition A list of item-id's generated by one of the list-generating processes while an active list is present.
access.selection.processor Definition Gathers items for Access processes.
tcl.wselect Verb: Access Same as 'select', but uses indices if present.
tcl.sort-list Verb: Access Retrieves, sorts and rewrites previously saved list.
tcl.copy Verb: Access Copies items to output devices or between files.
tcl.qselect Verb: Access Creates active list from item(s).
basic.readnext Statement Retrieves the next item-id from an active list.
tcl.get-list Verb: Access Retrieves previously saved list.
runoff.readnext Command Gets next item-id from active list.
access.nselect Verb: Access Performs 'not' select - only items not there.
op.readnext Command Reads data from active list.
access.outlist Definition Defines list of attributes to output.
op.chain Command Exits current item and begins processing specified item.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.