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.

continued<br />

Variant Summary of Function<br />

DETERMINE; (DT) Commands<br />

DETERMINE; EVERY Creates a loop in which all records that match specified values are<br />

read in order from a Profile<br />

DETERMINE; FROM Creates a loop in which all records are read that are greater than or<br />

equal to specified values<br />

DETERMINE; GROUP Creates a loop in which all data are read, between specified start and<br />

end values, from a Profile. The order is specified as part of the<br />

command<br />

DETERMINE; LAST Reads a single record equal to or lower than the values specified<br />

DETERMINE; TOTAL Reads through a Profile in order and, where the Profile Ordinates<br />

match the specified values, accumulates a nominated data item<br />

An END; command must terminate the loop created by all variants except DETERMINE;<br />

LAST and DETERMINE; TOTAL. The logic contained in the loop is executed for each<br />

record read.<br />

Setting of GLB.STATUS<br />

If a DETERMINE; command fails to retrieve any record (that is, no record satisfies the<br />

specified criteria), GLB.STATUS is set to *****. If any record is retrieved, GLB.STATUS<br />

will not be set by the DETERMINE; command. GLB.STATUS is not set when end-of-file is<br />

detected.<br />

The contents of GLB.STATUS should always be checked after a DETERMINE; command<br />

or, if a loop is created, after the END; or END.EXIT; command for that loop. GLB.STATUS<br />

is cleared (set to spaces) before the command is executed.<br />

You can direct the new value of GLB.STATUS resulting from the DETERMINE; command<br />

to another data item, by including the GLB.STATUS; command. This is especially useful<br />

where many commands may set GLB.STATUS (for example, where there are nested<br />

DETERMINE; commands).<br />

Logically Deleted Records<br />

Logically deleted records are brought into memory by DETERMINE; commands (unless<br />

they are specifically excluded by the Profile conditions). If you wish to ignore them you<br />

have to code your logic to bypass them.<br />

v 1-87

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

Saved successfully!

Ooh no, something went wrong!