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.

Example<br />

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

SERIAL<br />

An Event DRINQ has a Copy.From line number of 4 and a MAX.COPIES value of 5. The<br />

data item STARTCUST is used to enter the starting customer. The Data items CUSTOMER<br />

(which has LINK; IF.PRESENT applied to it) and BALANCE are part of the Copy.From<br />

area of the screen. Part of the logic for DRINQ is as follows:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Suppose CUST has records with CUSTOMER values: ARNOLD, BRUCE, COLLEEN,<br />

DIANE, EDWARD,andFRED. If STARTCUST has the value BARRY when the loop is<br />

entered the first time, the LOOK.UP; FROM command finds BRUCE. The second time<br />

(when GLB.COPY is 2), the LOOK.UP; FROM command will find COLLEEN, and not<br />

reread BRUCE. The third time (when GLB.COPY is 3) the LOOK.UP; FROM will find<br />

DIANE, and not reread BRUCE and COLLEEN.<br />

‘‘LOOK.UP; (LU;) Commands’’ and ‘‘DETERMINE; (DT) Commands’’.<br />

v 1-225

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

Saved successfully!

Ooh no, something went wrong!