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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LOOK.UP; EVERY<br />

LOOK.UP; EVERY<br />

Syntax<br />

Examples<br />

The LOOK.UP; EVERY command is used to read Component, Memo Component, or Event<br />

records into memory. It sequentially reads every record in the requested Ispec. Each new<br />

record overwrites the old one.<br />

For Standard and Table Components, the order in which records are read into memory is<br />

determined by the value of the Ordinate. For Memo Components and Events, records are<br />

read in the order of physical storage. This can change with additions and deletions, or<br />

reorganization.<br />

LOOK.UP; EVERY EVENT is valid in Report logic only.<br />

The LOOK.UP; EVERY command creates a loop, and this loop must be terminated by an<br />

END; or END.EXIT; command, as shown under ‘‘Syntax’’ and ‘‘Examples’’.<br />

DD DDDDBDDDDD DDDDDDBDD <br />

3 3<br />

CDDD DDD4<br />

3 3<br />

@DDDDDDDDD DDDDDDDDDDY<br />

DDDDDDDBDDDDDDDDDDDDDDDBDDDDDBDDDDDDDDDDDDDDDDBDDDD <br />

3 3 3 3<br />

@DDD DDDY CDDD DDDD4<br />

3 3<br />

@DDD DDDY<br />

DDDBDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDD4<br />

3 3<br />

@D DD DY<br />

The following example finds the tax rate for a taxable amount entered by the user. The<br />

Component TAX has the Ordinate TAXRANGE and a Data item RATE with the following<br />

values in four different records.<br />

TAXRANGE 1 10000 30000 50000<br />

RATE 0 .15 .25 .35<br />

The tax rates are to be applied as shown in the following table.<br />

1-158 v

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

Saved successfully!

Ooh no, something went wrong!