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.

Procedure<br />

To send an OLTP transaction:<br />

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

1. Nominate an External Auto Ispec or an OLTP View Ispec with the AUTO.ENTRY;<br />

command (GLB.OLTPTYPE and GLB.OLTPSUBTYPE are set automatically for OLTP<br />

View Ispecs).<br />

2. Set GLB.DESTHOST to GLB.OLTP.<br />

3. Set GLB.DESTINATION to the OLTP Service you require.<br />

4. Set GLB.OLTPSUBTYPE (if it is not an OLTP View Ispec) to the value required by the<br />

OLTP Service specified. For a <strong>LINC</strong> Service, this will be as follows.<br />

$ For UNIX and OS 2200 based <strong>LINC</strong> Systems:<br />

<br />

$ For MCP based <strong>LINC</strong> Systems:<br />

<br />

The values entered in ispec, system, andwindow refer to the destination <strong>LINC</strong><br />

System.<br />

5. Use AUTO; logic commands to prepare the data items in the message.<br />

6. Use the AUTO; WRITE logic command to send the message.<br />

Results<br />

If GLB.DESTHOST does not specify an OLTP transaction but your AUTO.ENTRY<br />

command specified an OLTP View Ispec, a runtime error occurs, GLB.STATUS is set to<br />

five asterisks (*****), and GLB.HUBSTATUS is set to an appropriate error message.<br />

If the OLTP transaction is processed successfully, GLB.STATUS contains spaces or DATA.<br />

A DATA value indicates that there is a response message in the Auto Entry buffer .<br />

If the processing on the OLTP Server is aborted and the transaction is using Two-Phase<br />

commit, the client transaction will be immediately aborted (for more details, see the<br />

ABORT; command).<br />

If any other processing or OLTP exception is encountered, your <strong>LINC</strong> logic execution will<br />

continue after the AUTO; WRITE command. Note the following points regarding these<br />

exceptions:<br />

$ GLB.STATUS will be set to five asterisks (*****), and GLB.HUBSTATUS will contain<br />

the error code. GLB.STATUS and GLB.HUBSTATUS settings are described later in this<br />

subsection.<br />

$ The buffer is not changed by the AUTO; WRITE command. The buffer is cleared to<br />

spaces by the AUTO; WRITE&CLEAR command.<br />

v 1-35

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

Saved successfully!

Ooh no, something went wrong!