18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LOOK.UP; (LU;) Commands<br />

LOOK.UP; (LU;) Commands<br />

The LOOK.UP; command variants are used to read data into memory from the <strong>LINC</strong><br />

database, without the use of a Profile.<br />

The particular variant controls the number and manner in which records are read into<br />

memory. Once a record is in memory, it may be manipulated by your associated logic. All<br />

Data items of the record are available to the logic (unless, on MCP based <strong>LINC</strong> Systems,<br />

the KEYONLY; command option is specified).<br />

Variants of the LOOK.UP; Command<br />

The variants of the LOOK.UP; command are summarized in the following table. More<br />

detailed explanations are given under separate command descriptions for each variant,<br />

following this general command description.<br />

Variant Summary of Operation<br />

LOOK.UP; Reads the single Component record for the specified Ordinate value.<br />

LOOK.UP; EVERY Creates a loop that reads each record from a Component, Memo<br />

Component, or the Event dataset.<br />

LOOK.UP; FROM Creates a loop that reads each record from a Component, starting<br />

from the specified Ordinate value.<br />

LOOK.UP; GROUP Creates a loop that reads each record from a Component, between<br />

specified Ordinate values. The order is specified as part of the<br />

command.<br />

Where a loop is created by a variant of the LOOK.UP; command, any logic contained in this<br />

loop is executed for each record read. An END; or END.EXIT; command must terminate<br />

the loop.<br />

Setting of GLB.STATUS<br />

In Host <strong>LINC</strong><br />

If a command fails to retrieve any record (that is, no record satisfies the specified criteria),<br />

all variants of the LOOK.UP; command with one exception, set GLB.STATUS to *****. The<br />

exception is a single LOOK.UP; command in Ispec logic, which does not set GLB.STATUS.<br />

If you use the GLB.STATUS; command with a single LOOK.UP; command in Ispec logic,<br />

then the named data item is set.<br />

If any record is retrieved, GLB.STATUS is not set by a LOOK.UP; command. GLB.STATUS<br />

is not set when end-of-file is detected.<br />

v 1-153

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!