01.05.2013 Views

Mainframe Call Generator (MCG) Refresh - Micro Focus

Mainframe Call Generator (MCG) Refresh - Micro Focus

Mainframe Call Generator (MCG) Refresh - Micro Focus

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.

<strong>Mainframe</strong> <strong>Call</strong> <strong>Generator</strong> <strong>Refresh</strong><br />

DB2 precompiler<br />

ATTACH option<br />

Confidential - 10 - December 2004<br />

Randy Witek<br />

<strong>Micro</strong> <strong>Focus</strong> Development<br />

MFA Server<br />

attachment type<br />

COBOL compiler<br />

call option<br />

CAF RRSAF NODYNAM -991<br />

CAF RRSAF DYNAM -991<br />

CAF CAF DYNAM OK<br />

CAF CAF NODYNAM OK<br />

RRSAF RRSAF NODYNAM OK<br />

RRSAF RRSAF DYNAM OK<br />

RRSAF CAF DYNAM -981<br />

RRSAF CAF NODYNAM -981<br />

TSO RRSAF NODYNAM -927<br />

TSO RRSAF DYNAM OK<br />

TSO CAF DYNAM OK<br />

TSO CAF NODYNAM -927<br />

Not specified RRSAF NODYNAM -927<br />

Not specified RRSAF DYNAM OK<br />

Not specified CAF DYNAM OK<br />

Not specified CAF NODYNAM -927<br />

Explanation for SQL return codes:<br />

SQL result<br />

-981 The SQL statement failed because the RRSAF connection is not in a state that allows<br />

SQL operations.<br />

-927 The language interface was called when the connecting environment was not<br />

established. The program should be invoked under the DSN command.<br />

-991 <strong>Call</strong> attach was unable to establish an implicit connect or open to DB2.<br />

The table shows that the combination of the COBOL DYNAM option for dynamic program calls<br />

and the ATTACH(TSO) DB2 precompilation option (or simply omitting the ATTACH option)<br />

provides flexibility in the actual connection type. This is because the ATTACH(TSO) and<br />

ATTACH() specifications generate a call to entry point DSNHLI for SQL execution. MFA Server<br />

provides a dummy DSNHLI entry point that becomes the target of dynamic calls. The MFA<br />

Server DSNHLI routine routes the SQL execution to the attachment facility (RRSAF or CAF) that<br />

has been selected, or defaulted, at startup. The ATTACH(RRSAF) and ATTACH(CAF)<br />

specifications generate calls to DSNHLIR and DSNHLI2, respectively, and no dummy entry points<br />

are provided for these attachments. Therefore, the real DB2 interface routines are selected,<br />

either statically or dynamically, and these interface routines expect the required attachment to<br />

have been activated by MFA Server.

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

Saved successfully!

Ooh no, something went wrong!