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.

Examples<br />

DETERMINE; GROUP<br />

high-order values, start values, andend valuesmust be specified by data items.<br />

The number of high-order values plus the number of start values must equal the number of<br />

Profile Ordinates. The number of end values must equal the number of start values.<br />

Either the high-order values or the start values (and end values) may be omitted. The<br />

parentheses must still be supplied in each case. However, parentheses are not required for<br />

omitted end values.<br />

In these examples, a Profile INVOICE over the Event SALE has Profile Ordinates<br />

CUSTOMER, ACTMTH, TRANDATE, and TRANTIME.<br />

<br />

The previous logic reads all records for the Profile Ordinate specified by the item<br />

CUSTOMER.<br />

In the next example, since no high-order values are included, records on the Profile are<br />

read, starting from first the record with the first Profile Ordinate greater than or equal to<br />

the value specified by the data item CUSTOMER. (This is equivalent to DETERMINE;<br />

FROM.)<br />

<br />

In the next example, the DETERMINE; GROUP command is used to get the total sales<br />

value for a customer.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

In this example, suppose the value SMITH is entered from the screen for CUSTOMER.<br />

STARTMTH and ENDMTH have values of 9801 and 9812, respectively.<br />

The DETERMINE; GROUP command reads the Profile INVOICE, starting with the first<br />

record with EVENT.CUSTOMER equal to SMITH, and EVENT.ACTMTH equal to or<br />

greater than 9801. EVENT.AMOUNT is accumulated in SD-TOTAL. When<br />

EVENT.CUSTOMER is not equal to SMITH, or when EVENT.ACTMTH is greater than<br />

9812, the loop is terminated.<br />

If there are no records for SMITH with EVENT.ACTMTH between 9801 and 9812,<br />

GLB.STATUS will be set to *****.<br />

v 1-101

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

Saved successfully!

Ooh no, something went wrong!