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.

DETERMINE; EVERY<br />

DETERMINE; EVERY<br />

Syntax<br />

Example<br />

The DETERMINE; EVERY command is used to read Component and Event records into<br />

memory from the <strong>LINC</strong> database, for those records that match the Profile Ordinate values<br />

specified.<br />

If the name of a Multiple Ordinate Memo Component is used in place of the Profile with the<br />

DETERMINE; EVERY command, the Automaint Profile for the Memo Component is used.<br />

Caution<br />

It is not good practice to change your Profile keys during the operation of a<br />

DETERMINE; EVERY loop. If you do, the results cannot be guaranteed.<br />

DD DDBDDDDDDDDD DDDDDDDDBDDDDD <br />

3 3<br />

@D DY<br />

DD DDBDDDDDDDDDDDBDDDBDDDDDDDDDDDBDD <br />

3 3 3 3<br />

@D DY CD D4<br />

3 3<br />

@D Y<br />

DDDBDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDD4<br />

3 3<br />

@D DD DY<br />

A Profile INVOICE, with Ordinates CUSTOMER and INVOICE-NO, spans an Event SALE.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

If CUSTOMER and INVOICE-NO have been entered through the screen with values SMITH<br />

and 1234, respectively. The DETERMINE; EVERY command searches the Profile INVOICE<br />

to find an Event named SALE with a CUSTOMER value of SMITH and an INVOICE-NO<br />

value of 1234.<br />

When a SALE Event is found, it is read into memory, and the value of the AMOUNT data<br />

item is accumulated into INV-TOTAL, completing the logic for this read.<br />

1-96 v

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

Saved successfully!

Ooh no, something went wrong!