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

Rejecting an Automatic Entry<br />

A transfer to a Standard or Table Component will be rejected in the following cases:<br />

$ Where the value of MAINT is the same as GLB.ADD, and the record already exists<br />

$ Where the value of MAINT is the same as GLB.CHG or GLB.DEL, and the record does<br />

not exist<br />

AUTO; WRITE&CLEAR<br />

The AUTO; WRITE&CLEAR command performs the additional function of clearing the<br />

Automatic Entry buffer.<br />

Caution (MCP based <strong>LINC</strong> Systems only)<br />

If an AUTO; WRITE or AUTO; WRITE&CLEAR command creates a duplicate record<br />

on a Profile defined with Duplicates Allowed set to N, the write will fail and the<br />

transaction will be aborted.<br />

External Automatic Entries<br />

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

the Auto Entry buffer of the sending Ispec, to the input buffer of the destination Ispec in<br />

the external <strong>LINC</strong> System.<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 enables the information for the destination Ispec to be assembled<br />

correctly.<br />

The <strong>LINC</strong> Specification of the sending and destination Ispecs must be identical.<br />

AUTO; WRITE&CLEAR<br />

The AUTO; WRITE&CLEAR command will only clear the Auto Entry buffer if no data is<br />

returned to the buffer, in which case it will clear the buffer regardless of the setting of<br />

GLB.ERROR. If data is returned, the action is identical to an AUTO; WRITE command.<br />

External Automatic Entries are not supported in LDA Run Time.<br />

OLTP Automatic Entry<br />

As for any external Automatic Entry, use the AUTO; WRITE and AUTO; WRITE&CLEAR<br />

commands to send an OLTP transaction containing data you have set up in the Auto Entry<br />

buffer.<br />

1-34 v

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

Saved successfully!

Ooh no, something went wrong!