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.

Syntax<br />

Examples<br />

DDDD DDDDD DDDDD DDDDDD4<br />

data name 2<br />

The receiving data item (you cannot specify a literal).<br />

The following example shows a simple MOVE command.<br />

<br />

<br />

<br />

<br />

<br />

The following example shows a MOVE; of a GROUP data item.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

This logic sets TIMEW to 200402 and RECEPTW to 20040200.<br />

Complex Form of the MOVE; Command<br />

MOVE (MV)<br />

The complex form of the MOVE; command enables the values of two data items to be<br />

manipulated to give a new result. It has no effect on the contents of the first data item.<br />

Values of different edit characteristics can be missed, although the sign of the first data<br />

item is not moved. Due to a COBOL compiler restriction, an alphanumeric data item<br />

greater than length 23 cannot be moved to a numeric or signed data item.<br />

If you move a mixed alphanumeric and Hankaku-Katakana value into an EDIT; W data<br />

item, the value is moved character by character, and is truncated to the length of the<br />

data item. However, if you move a mixed alphanumeric and Hankaku-Katakana value into<br />

an EDIT; A data item, the value is moved byte by byte and is truncated to the length of the<br />

data item. If the truncation occurs after the first byte of a double-byte Hankaku-Katakana<br />

character, this will result in an invalid character.<br />

Note: EDIT; W data items are not implemented in LDA.<br />

There are two variants of the complex MOVE; command: direct and sorted.<br />

v 1-173

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

Saved successfully!

Ooh no, something went wrong!