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.

AUTO; WRITE and AUTO; WRITE&CLEAR<br />

AUTO; WRITE and AUTO; WRITE&CLEAR<br />

The AUTO; WRITE command transfers information from the Auto Entry buffer to the<br />

destination (receiving) Ispec or buffer, depending on whether it is an internal or external<br />

Automatic Entry. Internal Automatic Entries transfer data within the same <strong>LINC</strong> Database.<br />

External Automatic Entries transfer data to an external <strong>LINC</strong> System (which can be on a<br />

different host).<br />

The AUTO; WRITE (and AUTO.WRITE&CLEAR) command can be used more than once in<br />

the same Ispec or Report logic. A record is transferred each time a command is executed.<br />

GLB.ERROR and GLB.STATUS<br />

Updating is not completed if GLB.ERROR has a value other than GLB.SPACES. Changes to<br />

GLB.ERROR after the AUTO; WRITE is executed have no effect on the current Automatic<br />

Entry.<br />

For Automatic Entries, GLB.STATUS is set at the time the AUTO.WRITE; command is<br />

executed. The setting of GLB.STATUS is discussed under ‘‘Settings of GLB.STATUS and<br />

GLB.HUBSTATUS’’, later in this command subsection.<br />

Event Data Items<br />

In an Automatic Entry to an Event, the System Data items ACTMTH, INPUT-DATE, and<br />

ISPEC are handled automatically.<br />

Differences between AUTO; WRITE and AUTO; WRITE&CLEAR<br />

There are some differences with the way the AUTO; WRITE and AUTO; WRITE&CLEAR<br />

commands work, depending on whether you are transferring data internally, to an external<br />

<strong>LINC</strong> System, or to another system through OLTP. These differences are described in the<br />

following subsections.<br />

Internal Automatic Entries<br />

For internal Automatic Entries, the AUTO; WRITE command transfers information from<br />

the Auto Entry buffer to the database structure of the destination (receiving) Ispec. A<br />

record is sent to the <strong>LINC</strong> database each time an AUTO; WRITE command is executed.<br />

Any record currently in memory for the destination Ispec is overwritten by the Auto Entry<br />

buffer record prior to its storage in the <strong>LINC</strong> database. On completion of a successful<br />

Automatic Entry, the current database record will be the one just created.<br />

Requirements<br />

The destination Ispec must have the Automatic Entry field set to Y on the Ispec Options<br />

screen for the <strong>LINC</strong> Specification of the <strong>LINC</strong> System that is performing the AUTO; WRITE<br />

command. This field enables the Ispec to receive Automatic Entries.<br />

v 1-33

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

Saved successfully!

Ooh no, something went wrong!