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.

DETERMINE; (DT) Commands<br />

DETERMINE; (DT) Commands<br />

The DETERMINE; command variants are used to read data into memory from the <strong>LINC</strong><br />

database through a Profile or, using DETERMINE; ACTUAL, an Extract file or dataset.<br />

The particular variant controls the manner in which records are read into memory, and<br />

how many. Once a record is in memory, it can be manipulated by the associated logic.<br />

The definition of the Profile, in particular its Ordinates and ASCENDING; or<br />

DESCENDING; Profile Attributes, determine which records are retrieved, and the order in<br />

which the records are retrieved.<br />

Caution<br />

There are differences in the way in which database accesses are handled on the<br />

various host types.<br />

For MCP based <strong>LINC</strong> Systems and UNIX Griffin <strong>LINC</strong> Systems, accesses by<br />

DETERMINE; commands are dependent on the positioning of the Profile by nested<br />

DETERMINE; commands. To avoid unexpected side-effects do not access the<br />

sameProfilewithnestedDETERMINE;commandsasaccessesbynested<br />

DETERMINE; commands can alter the positioning on the Profiles required by outer<br />

DETERMINE; commands, and unexpected records can be read.<br />

For OS 2200 based <strong>LINC</strong> Systems and UNIX ORACLE <strong>LINC</strong> Systems, each<br />

DETERMINE; command is independent of previous positioning.<br />

For LDA, the behaviour matches that of the target host defined by the TargetHost<br />

parameter in your <strong>LINC</strong>.INI file.<br />

Variants of the DETERMINE; Command<br />

The particular variant controls the number and manner in which records are read into<br />

memory. Once in memory, a record may be manipulated by logic.<br />

The DETERMINE; command variants are summarized in the following table, and are then<br />

described in detail in the following subsections.<br />

Variant Summary of Function<br />

DETERMINE; ACTUAL Creates a loop in which all records are read in order from a Profile,<br />

Extract file, or Component<br />

DETERMINE; BACK Creates a loop in which all the records are read in reverse Profile<br />

order, starting from specified values<br />

continued<br />

1-86 v

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

Saved successfully!

Ooh no, something went wrong!