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.

Storage of Recovery Data<br />

Syntax<br />

CRITICAL.POINT (CP)<br />

The CRITICAL.POINT; command uses a special Critical Point Group Setup Data item or<br />

Global Setup Data item (CP-GROUP-SD) to store the required recovery data.<br />

The CP-GROUP-SD item is named on the Report Options screen in the Critical Point SD<br />

field, and its characteristics are declared in the logic of the Report. CP-GROUP-SD may<br />

have a maximum size of 2,000 characters.<br />

The required recovery data must be stored in the CP-GROUP-SD item prior to each<br />

CRITICAL.POINT; command. Typically, such data consists of running totals being<br />

accumulated in memory, and details that will enable <strong>LINC</strong> to identify the record to be<br />

processed.<br />

The Extract file activities related to the CRITICAL.POINT; command are shown in the<br />

following table.<br />

File Status Temporary Extract<br />

File<br />

Not open for<br />

output<br />

Permanent Extract<br />

File<br />

No action No action No action<br />

Existing Extract File<br />

Open for output Closed/Reopened Closed/Reopened Closed/Reopened<br />

D DBDDDDDDDDDDDDDDDDDDBDBDDDDDDDDDDDDDBD4<br />

3 33 3<br />

@ D Y@ Y<br />

SLEEP; seconds<br />

The SLEEP; command option causes the Report to be suspended for the number of<br />

seconds (0 to 9999) specified by either the constant or the numeric data item seconds.<br />

Note: Do not confuse this command option with the SLEEP; command, whichisnot<br />

valid in Reports that contain CRITICAL.POINT; commands.<br />

Suspension occurs immediately the CRITICAL.POINT; command is executed, and this<br />

frees access to the <strong>LINC</strong> database. The Report is activated after the specified time lapse,<br />

and then performs any activity that may have accumulated for it. The Report is also<br />

activated by an explicit WAKE.UP; command.<br />

If the SLEEP; command option is not specified or has a zero time value, the Report will<br />

continue immediately after the end-of-transaction processing is complete.<br />

v 1-71

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

Saved successfully!

Ooh no, something went wrong!