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.

<strong>Reference</strong>s<br />

continued<br />

ON.CHANGE (OCH)<br />

Frame Comment GLB.CHANGE is<br />

4 Customer summary CUST.CUSTNO<br />

5 Branch summary CUST.BRANCH<br />

1 Branch heading CUST.BRANCH<br />

2 Customer heading CUST.CUSTNO<br />

3 Multiple customer account records ...<br />

... and so on ...<br />

‘‘ON.CHANGE; Statistical Routines’’.<br />

‘‘GLB.CHANGE’’.<br />

ON.CHANGE; Statistical Routines<br />

Standard statistical routines are available in association with the ON.CHANGE; command<br />

in Report main logic.<br />

Calculations are based on the values of a source data item at each iteration of the loop<br />

containing the ON.CHANGE; command, and on the number of iterations.<br />

The result of the statistical routine is stored in a numeric data item, and can be accessed in<br />

the footer. This data item will usually be included in the Frame, although this is not<br />

compulsory. If the item is not part of the Frame, set its value to zero or spaces in the logic<br />

of the Frame.<br />

Statistical Routines must immediately follow the related ON.CHANGE; command they<br />

qualify.<br />

The following table summarizes the statistical routines and their abbreviations.<br />

Routine Name Abbreviation Description<br />

COUNT; CNT; Number of values (iterations)<br />

SUM; Sum of the values<br />

AVERAGE; AVG; MEAN; Average of the values<br />

MAXIMUM; MAX; Largest value<br />

continued<br />

v 1-189

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

Saved successfully!

Ooh no, something went wrong!