iTP Active Transaction Pages (iTP ATP) Programmer's Guide

Migration Considerations
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
G-4
Tuxedo 6.5 Support
Tuxedo 6.5 Support
If you have selected Tuxedo 6.5 support at configuration, be sure to set the
environmental variable ATP_TUXEDO_VERSION = 65. See Environment Variables for
further details.
If you want to use the banking examples file with Tuxedo 6.5, take note of the following:
In the /usr/tandem/atp/examples/tuxedo/bankapp/transfer.atp file, change the name
‘bank.flds’ to ‘bankflds’; that is, remove the period.
Change the following line in the atp-tuxedo.config:
From this - AddCGI FIELDTBLS Usysflds,bank.flds
To this - AddCGI FIELDTBLS Usysflds,bankflds
In other words, remove the period.
General Considerations
The saveabend option is enabled in ATP V21. Therefore ATP will create a large
number of ZZSA files under normal CGI connection abort conditions.
If this is unacceptable, you must set the environment variable
TANDEM_CGI_CONNECTION_ABORT=NO.
Example G-1. Checking the Validity of Your Data Conversions
<server>
tran = new atp.transaction();
TMFError("instantiate object");
s = new atp.SQL("update $data.sqld030.btre204 set FLOAT_BASIC =
?floatb where char_1 ='C' for stable access");
if (s.sqlcode != 0) SQLError(s);
s.execute('xyz',tran);
if (s.sqlcode !=0) SQLError(s, "execute()");
tran.commit();
</server>
The value of 0 is inserted into the FLOAT_BASIC field. No error
message of an invalid data input is generated.
Error status check functions:
<server>
function SQLError (stmt,func) {
atp.print ("\nSQL error.. stmt=" + func + ";\n" +
"cursor=" + stmt.cursor + "; " +
"sqlcode=" + stmt.sqlcode + "; " +
"file system error=" + stmt.filesystem_error + ";\n " +
stmt.sqlca + "\n" );
}
function TMFError (stmt, func) {
atp.print ("TMF " + func + ": NSK error=" + stmt.error + "; "+
"status=" + stmt.status + "\n");
} </server>