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.

BEGIN.EDIT and END.EDIT<br />

BEGIN.EDIT and END.EDIT<br />

Syntax<br />

Examples<br />

The BEGIN.EDIT; and END.EDIT; commands delimit sequences of main logic that perform<br />

editing and validation of input data in a Copy.From Ispec. Although there may be multiple<br />

pairs, the logic contained in the various pairs is treated as a single unit called the<br />

Copy.From Edit Logic, which is executed in the validation phase of the Copy.From cycle.<br />

Any logic that may cause rejection of data must be coded as Copy.From Edit logic. AUTO;<br />

FLAG; or RECALL; commands cannot be included.<br />

In Copy.From Ispecs, MESSAGE; commands can be coded only within Pre-<strong>LINC</strong> and Edit<br />

logic. The MESSAGE; command sets GLB.ERROR to ***** (and so inhibits updating the<br />

database) only in the validation phase of the Copy.From cycle. MESSAGE; commands are<br />

not actioned in the update phase of the Copy.From cycle.<br />

The BEGIN.EDIT; and END.EDIT; commands are not implemented in LDA Run Time. Use<br />

Copy.From Edit logic instead.<br />

For details about Copy.From Ispecs in the <strong>LINC</strong> Cycle, see your <strong>LINC</strong> Generate<br />

Operations Guide.<br />

DDDD DDDD DDDD DDD4<br />

An Event named SALE is specified with MAX.COPIES of 5, starting from line 5. The Data<br />

items on line 5 are PRODUCT, QUANTITY, and AMOUNT. A CUSTOMER Data item is on<br />

line 3.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

This Copy.From edit loop will be cycled through 5 times. Any executed MESSAGE; or<br />

RECALL; command means that the edit loop fails, and the <strong>LINC</strong> database will not be<br />

updated. If the edit loop is successful, Pre-<strong>LINC</strong> and Main Logic (including the Copy.From<br />

edit loop) are processed MAX.COPIES times, and the database is updated (provided<br />

PRODUCT has a value).<br />

1-44 v

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

Saved successfully!

Ooh no, something went wrong!