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.

MOVE (MV)<br />

Direct<br />

In this variant, characters are taken from the first data item, starting at a specified position<br />

and continuing for a specified length. The characters are moved into the second data item,<br />

starting at a specified position, overwriting the current characters. Characters not<br />

overwritten are retained.<br />

Sorted<br />

This variant is indicated by specifying either the SORTA; (ascending) or SORTD;<br />

(descending) command option.<br />

A group of characters is taken from the first data item, starting at a specified position and<br />

continuing for a specified length. This group of characters is inserted into the second data<br />

item. The position of the insertion is determined by grouping characters in the second data<br />

item into groups (the same size as the group from the first data item), and then comparing<br />

the group to be inserted with each group in the second data item.<br />

The size of the value of the second data item increases with each MOVE; command.<br />

Truncation may occur if the value exceeds the length of the second data item. If the last<br />

right-hand significant group of figures do not have their position changed, truncation will<br />

not take place.<br />

Spaces are not sorted.<br />

Setting GLB.STATUS<br />

The MOVE; command is validated if any of the following situations apply:<br />

$ The Def bounds checking field on the Primary Specification Options screen is set to<br />

Y.<br />

When this field is set to N, error checking code is not generated, so a check for errors<br />

will not occur. This means that if a complex move is performed that is out of bounds of<br />

the receiving data item, that data item may contain unpredictable results.<br />

$ The GLB.STATUS; command is included in the MOVE; command.<br />

$ The sorted variant of the MOVE; command is used.<br />

If validation is in effect, it proceeds as follows.<br />

$ If an invalid MOVE; command is attempted, ***** is moved to the System Data item<br />

GLB.STATUS, and the move is not performed.<br />

$ If truncation occurs, GLB.STATUS is not usually set to *****. However, if a group of<br />

characters in a sorted complex MOVE; command is appended to the second data item<br />

and would be truncated, GLB.STATUS is set to ***** and the move is not performed.<br />

1-174 v

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

Saved successfully!

Ooh no, something went wrong!