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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EXTRACT (EX)<br />

These files do not exist before the Report begins, and are deleted after the Report<br />

ends. To specify a TEMPORARY file, use one of the following logic command<br />

constructs (and do not include a SET.TITLE; command):<br />

v EXTRACT; (without the RETAIN.AS; command option)<br />

v DETERMINE; ACTUAL (without the RETAINED.AS; command option)<br />

Extract File Processing<br />

The way an EXTRACT; command handles an Extract file at runtime is influenced by:<br />

$ The category of the Extract file (TEMPORARY, PERMANENT, or EXISTING)<br />

$ Whether it is the first or a subsequent access of the Extract file<br />

A first access is defined as the first execution of any DETERMINE; ACTUAL, SORT ,<br />

EXTRACT, or MATCH; commands for a specific Extract file, either in the logic of the<br />

Report, or following a SET.TITLE; or RESTART; command.<br />

The EXTRACT; command attempts to write a record to the specified Extract File.<br />

$ If this is not the first access of the Extract file, the extracted data will be appended to<br />

the existing file.<br />

$ If this is the first access of the Extract file, the action performed on the file when the<br />

EXTRACT; command is executed depends on the category of the file, as shown in the<br />

following table.<br />

File Status Temporary Extract<br />

File<br />

Permanent Extract<br />

File<br />

File exists Cleared Cleared Cleared<br />

File does not exist Created Created Created<br />

Existing Extract File<br />

At the end of Report execution, the action performed on the file when an EXTRACT;<br />

command has specified that file depends on the category of the file and whether it was<br />

actually accessed, as shown in the following table.<br />

File Status Temporary Extract<br />

File<br />

Permanent Extract<br />

File<br />

Not accessed Deleted Cleared No action<br />

Accessed Deleted Closed Closed<br />

Existing Extract File<br />

v 1-125

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

Saved successfully!

Ooh no, something went wrong!