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.ENTRY (AE)<br />

AUTO.ENTRY (AE)<br />

The AUTO.ENTRY; command identifies the name of the Component or Event to which<br />

data is to be sent by an Automatic Entry. This in turn determines the format of the Auto<br />

Entry buffer to which data is to be sent by the AUTO; and AUTO.ARRAY; logic commands.<br />

Data items not given a value explicitly (with an AUTO; command) are sent a value of<br />

spaces (or zero for a numeric item). When changing an existing record, this is usually<br />

interpreted as indicating no change to the existing record. However, if the CLEAR.WHEN;<br />

character is a space (or zero for a numeric item), the value will be set to space (or zero).<br />

Restrictions on the Ispec<br />

The AUTO.ENTRY; command can only be used if the receiving Ispec is defined as one of<br />

the following:<br />

$ An Automatic Entry Ispec (by setting the Automatic Entry field on its Component or<br />

Event Options screen to Y).<br />

$ An External-only Ispec (by setting the External Only Ispec field on its Component or<br />

Event Options screen to Y).<br />

$ An OLTP View Ispec (by using the OVI choice from the <strong>LINC</strong> Definition Menu screen).<br />

External Automatic Entries<br />

For an external Automatic Entry (from one <strong>LINC</strong> System to another), the Ispec must be<br />

identical to an Ispec in the receiving <strong>LINC</strong> System.<br />

You can also use external Automatic Entries to interface to a non-<strong>LINC</strong> system, using the<br />

NOF or <strong>LINC</strong> USER interface methods. For more details, see your <strong>LINC</strong> Generate<br />

Operations Guide.<br />

Multiple AUTO.ENTRY; Commands<br />

The Ispec used in an AUTO; WRITE command is the Ispec specified in the most recent<br />

AUTO.ENTRY; command in the logic prior to the AUTO; WRITE; command, regardless of<br />

any conditional commands such as the DO.WHEN; or BEGIN.CASE; command.<br />

Ispec Locking on OS 2200 based <strong>LINC</strong> Systems<br />

On OS 2200 based <strong>LINC</strong> Systems, AUTO.ENTRY; applies an implicit RDMS lock.<br />

Attempting to explicitly lock the same Ispec later in the same transaction (for example,<br />

with a LOOK.UP; command with a SECURE; command option) can result in an RDMS<br />

error.<br />

OLTP<br />

In an OLTP environment, the AUTO.ENTRY; command sets GLB.OLTPTYPE, and also sets<br />

GLB.OLTPSUBTYPE if the specified Ispec is an OLTP View Ispec.<br />

v 1-29

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

Saved successfully!

Ooh no, something went wrong!