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.

GLB.BALANCE<br />

System Data Item Descriptions<br />

Note: GLB.BALANCE is valid in Ispecs only. It is not implemented in LDA Run Time.<br />

GLB.BALANCE is used in conjunction with Repeat.From Ispecs. The value of<br />

GLB.BALANCE (if it is used in the logic of the Ispec) is displayed in the status line of the<br />

screen, after each Repeat.From line has been transmitted.<br />

Only ten characters (including the decimal point, two decimal digits, and sign) are<br />

displayed in the status line. Truncation of the whole number part to six digits can thus<br />

occur.<br />

Maintenance of the value of GLB.BALANCE is your responsibility. Any combination of<br />

data items whose sum over the transaction should balance to zero can be specified.<br />

If GLB.BALANCE is not zero after the last Repeat.From line (that is, the balance is<br />

non-zero after 999 is entered in LAST-LINE to end the transaction), an error message is<br />

displayed. This system-generated error message does not inhibit the 999 line updating the<br />

database, and thus your logic should include setting GLB.ERROR to five asterisks (*****) if<br />

you do not want the 999 line to update the database.<br />

You cannot start a new transaction until the value of GLB.BALANCE equals zero. (Note<br />

that in Pre-Screen logic for Repeat.From Ispecs, LAST-LINE is always equal to 1, even<br />

though Pre-screen logic is performed for each line.<br />

In the following example, a Repeat.From Event includes one BATCHTOT item, and an<br />

AMOUNT item for each Repeat.From line. If the sum of the AMOUNT values is not equal to<br />

BATCHTOT, an error message is displayed and the database is not updated.<br />

The associated logic is:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

GLB.BALANCE is recovered automatically after an abnormal system shutdown.<br />

See your <strong>LINC</strong> Generate Operations Guide which includes notes on the use of<br />

GLB.BALANCE.<br />

LENGTH = 16 EDIT = + DECIMALS = 4<br />

v 2-13

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

Saved successfully!

Ooh no, something went wrong!