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.

DETERMINE; TOTAL<br />

Syntax<br />

Examples<br />

DETERMINE; TOTAL<br />

The DETERMINE; TOTAL command creates a balance by adding together the numeric<br />

values of the specified data items of the selected records. The DETERMINE; TOTAL<br />

command is like a combination of the DETERMINE; EVERY and ADD; commands, except<br />

that a loop is implicit within the command.<br />

The DETERMINE; TOTAL command brings into memory all records on the Profile that<br />

match the specified values. Values of the specified data item are totalled, and the result is<br />

stored in the System Data item GLB.TOTAL.<br />

If the name of a Multiple Ordinate Memo Component is used in place of the Profile with the<br />

DETERMINE; TOTAL command, the Automaint Profile for Memo Component is used.<br />

DD DBDDD DDDBD <br />

3 3<br />

@DDDDDDDDDD DDDDDDDDDDDY<br />

DDDDD DD DDDDDDDDDDDDD <br />

DDDBDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDD4<br />

3 3<br />

@D DD DY<br />

In the following example, a Profile INVOICE, with Ordinates CUSTOMER and<br />

INVOICE-NO, spans an Event SALE. The AMOUNT values in SALE are totalled for the<br />

current CUSTOMER and INVOICE-NO values.<br />

<br />

<br />

<br />

<br />

The next example shows a Report that adds up the quantity of each product. For any<br />

product that has a total quantity less than 10, it prints the message STOCK-IN-HAND is<br />

CRITICALLY LOW (contained in Frame 09). The Profile STOCK, with Ordinate<br />

PRODUCT, spans Events that affect quantities (that is, stock movements). The<br />

stock-in-hand value is totalled for the current PRODUCT value as follows.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

v 1-105

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

Saved successfully!

Ooh no, something went wrong!