10.12.2012 Views

Application Programming and SQL Guide - Kmlinux

Application Programming and SQL Guide - Kmlinux

Application Programming and SQL Guide - Kmlinux

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.

|<br />

|<br />

Several tasks . . . . . . . . . . . . . . . . . . . . . . . . 829<br />

Exit routines from your application . . . . . . . . . . . . . . . . . 829<br />

Attention exit routines . . . . . . . . . . . . . . . . . . . . . 829<br />

Recovery routines . . . . . . . . . . . . . . . . . . . . . . 830<br />

Error messages <strong>and</strong> dsntrace . . . . . . . . . . . . . . . . . . . 830<br />

CAF return codes <strong>and</strong> reason codes . . . . . . . . . . . . . . . . 830<br />

Program examples for CAF . . . . . . . . . . . . . . . . . . . . 831<br />

Sample JCL for using CAF . . . . . . . . . . . . . . . . . . . 831<br />

Sample assembler code for using CAF . . . . . . . . . . . . . . 832<br />

Loading <strong>and</strong> deleting the CAF language interface . . . . . . . . . . . 832<br />

Connecting to DB2 for CAF . . . . . . . . . . . . . . . . . . . 832<br />

Checking return codes <strong>and</strong> reason codes for CAF . . . . . . . . . . 834<br />

Using dummy entry point DSNHLI for CAF . . . . . . . . . . . . . 836<br />

Variable declarations for CAF . . . . . . . . . . . . . . . . . . 837<br />

Chapter 31. <strong>Programming</strong> for the Resource Recovery Services<br />

attachment facility . . . . . . . . . . . . . . . . . . . . . . 839<br />

RRSAF capabilities <strong>and</strong> requirements . . . . . . . . . . . . . . . . 839<br />

RRSAF capabilities . . . . . . . . . . . . . . . . . . . . . . 839<br />

RRSAF requirements . . . . . . . . . . . . . . . . . . . . . 840<br />

How to use RRSAF . . . . . . . . . . . . . . . . . . . . . . . 842<br />

Summary of connection functions . . . . . . . . . . . . . . . . 842<br />

Implicit connections . . . . . . . . . . . . . . . . . . . . . . 843<br />

Accessing the RRSAF language interface . . . . . . . . . . . . . 844<br />

General properties of RRSAF connections . . . . . . . . . . . . . 846<br />

Summary of RRSAF behavior . . . . . . . . . . . . . . . . . . 848<br />

RRSAF function descriptions . . . . . . . . . . . . . . . . . . . 849<br />

Register conventions . . . . . . . . . . . . . . . . . . . . . 849<br />

Parameter conventions for function calls . . . . . . . . . . . . . . 850<br />

IDENTIFY: Syntax <strong>and</strong> usage . . . . . . . . . . . . . . . . . . 850<br />

SWITCH TO: Syntax <strong>and</strong> usage . . . . . . . . . . . . . . . . . 853<br />

SIGNON: Syntax <strong>and</strong> usage . . . . . . . . . . . . . . . . . . 855<br />

AUTH SIGNON: Syntax <strong>and</strong> usage . . . . . . . . . . . . . . . . 858<br />

CONTEXT SIGNON: Syntax <strong>and</strong> usage . . . . . . . . . . . . . . 861<br />

SET_ID: Syntax <strong>and</strong> usage . . . . . . . . . . . . . . . . . . . 865<br />

SET_CLIENT_ID: Syntax <strong>and</strong> usage . . . . . . . . . . . . . . . 866<br />

CREATE THREAD: Syntax <strong>and</strong> usage . . . . . . . . . . . . . . . 868<br />

TERMINATE THREAD: Syntax <strong>and</strong> usage . . . . . . . . . . . . . 871<br />

TERMINATE IDENTIFY: Syntax <strong>and</strong> usage . . . . . . . . . . . . . 872<br />

TRANSLATE: Syntax <strong>and</strong> usage . . . . . . . . . . . . . . . . . 873<br />

RRSAF connection examples . . . . . . . . . . . . . . . . . . . 874<br />

Example of a single task . . . . . . . . . . . . . . . . . . . . 875<br />

Example of multiple tasks . . . . . . . . . . . . . . . . . . . 875<br />

Example of calling SIGNON to reuse a DB2 thread . . . . . . . . . . 875<br />

Example of switching DB2 threads between tasks . . . . . . . . . . 875<br />

RRSAF return codes <strong>and</strong> reason codes . . . . . . . . . . . . . . . 876<br />

Program examples for RRSAF . . . . . . . . . . . . . . . . . . . 877<br />

Sample JCL for using RRSAF . . . . . . . . . . . . . . . . . . 877<br />

Loading <strong>and</strong> deleting the RRSAF language interface . . . . . . . . . 877<br />

Using dummy entry point DSNHLI for RRSAF . . . . . . . . . . . . 877<br />

Connecting to DB2 for RRSAF . . . . . . . . . . . . . . . . . 878<br />

Chapter 32. CICS-specific programming techniques . . . . . . . . . 881<br />

Controlling the CICS attachment facility from an application . . . . . . . . 881<br />

Improving thread reuse . . . . . . . . . . . . . . . . . . . . . 881<br />

Detecting whether the CICS attachment facility is operational . . . . . . . 881<br />

Contents xv

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

Saved successfully!

Ooh no, something went wrong!