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 />

$ As logic associated with a Frame is performed when the Frame is extracted, a Frame<br />

cannot be extracted from within its own logic. If a Frame is extracted for use in<br />

another Report, the Frames should be defined identically in both Reports.<br />

$ See ‘‘Numeric Data Items in Extract Files’’, later in this section for further details.<br />

To create an Extract file for MAPPER you must create an Extract file in Report Frame<br />

format. In MAPPER Extract files, the columns of data values are separated by tabs.<br />

Numeric Data Items in Extract Files<br />

For numeric data items in Extract files:<br />

$ Numeric data items extracted as part of a Frame may have a different format from<br />

those extracted as part of an Ispec record (depending on the host type). The default<br />

for Frame numeric data items is COBOL type DISPLAY. This can be changed to COMP<br />

by adding the BCD Data Attribute to the data item. Ispec numerics are always COMP.<br />

$ Numeric data items extracted as part of an Ispec record are extracted as COMP for<br />

MCP based <strong>LINC</strong> Systems, COMP-3 for UNIX, and DISPLAY for OS 2200 based <strong>LINC</strong><br />

Systems. See the COBOL <strong>Manual</strong> for implications of signed points.<br />

$ Numeric data items extracted as part of a Frame have the sign folded into the least<br />

significant digit. See your COBOL manual for a description of the PICTURE clause for<br />

details on folding the sign in.<br />

$ For MAPPER Extract files, numeric data items must have leading signs. To achieve<br />

this, define the relevant numeric data items with the FLOATING.SIGN Data Attribute.<br />

Multiple Extracts to the Same File<br />

If an Extract file has already been accessed by another command, such as a DETERMINE;<br />

ACTUAL or SORT; command, the EXTRACT; command will append data to the existing<br />

file, unless the RESTART; command is used.<br />

If you Extract multiple Frames that include the same data item (from the same Ispec) to an<br />

Extract file, and then read this item back in, you will receive a COBOL error or warning,<br />

and your Reports may not function as intended.<br />

<strong>LINC</strong> does not distinguish the same data item extracted to the same file from different<br />

Frames when that file is read back in.<br />

For example, you may have an Ispec data item CUST.NAME painted in both Frames 10 and<br />

11, and you extract both these Frames to file A. A later DETERMINE; ACTUAL A<br />

EXTRACTED.AS; 10 and a reference to A*CUST.NAME will refer to Extract file records<br />

extracted from both Frame 10 and 11.<br />

v 1-123

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

Saved successfully!

Ooh no, something went wrong!