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)<br />

LOOK.UP; (LU)<br />

Syntax<br />

Examples<br />

<strong>Reference</strong>s<br />

The single LOOK.UP; command variant is used to read a single Standard or Table<br />

Component record whose Ordinate value matches that contained in a data item. This data<br />

item must have compatible edit characteristics with the Ordinate.<br />

The single LOOK.UP command variant does one single read, and does not have an<br />

associated END; command, END.NO.PRINT command, or END.EXIT; command.<br />

In Ispec logic, if a LOOK.UP; command fails to find a record and the GLB.STATUS<br />

command is not included, an automatic error message is returned to the operator and no<br />

further logic is processed. The System Data item GLB.STATUS is not affected by the single<br />

LOOK.UP; command variant in Ispec logic. However, if you include the GLB.STATUS;<br />

command with the LOOK.UP; command, the data item is set to ***** and processing<br />

continues.<br />

In Report logic, GLB.STATUS is set to ***** if a record is not found, and execution<br />

continues.<br />

DD DD DD DDDDDDDDDDDDD <br />

DDDDDDBDDDDDDDDDDDBDDDDDDDDBDDDDDDDDDDDDBDDDDDDDDDDDDD4<br />

3 3 3 3<br />

@D DY CD D4<br />

3 3<br />

@D DY<br />

A product can have two suppliers. The Component PROD has the following data items:<br />

<br />

<br />

<br />

The Component SUPP has an Ordinate SUPPLIER. While an entry in PROD of a value for<br />

SUPPLIER will automatically be validated, SUPPLIER2 must be explicitly validated by<br />

logic, as follows:<br />

<br />

<br />

<br />

If no such supplier is found, a system error message is automatically sent to the operator.<br />

‘‘SECURE’’.<br />

1-156 v

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

Saved successfully!

Ooh no, something went wrong!