iTP Active Transaction Pages (iTP ATP) Programmer's Guide
Migration Considerations
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide—522292-002
G-3
ATP Parser Differences
An error message will be returned.
xyz.atp:3: missing } after function body:
xyz.atp:3: function abc ( ) {
xyz.atp:3: .................
xyz.atp (1): ATP parser error:compile failed
Remember, the application can call the atp.execute method to implement the same 
functionality. See Global Functions
 for further details.
ATP Objects
atp.request
This variable property is read-only. If you try to modify the value, ATP will report an 
error message.
atp.sql methods
•
close
ATP 2.0 releases the internal cache entry of the SQL statement when the close 
method is called. The subsequent methods like execute or next report an error, 
“Invalid SQL statement”, after the close method. The close method between 
multiple execute methods is not necessary for the same SQL statement on the same 
page. ATP V20 closes and re-opens the internal SQL cursor for the second and 
subsequent execute methods.
•
execute
ATP V20 checks the number and types of parameter values passed by the 
applications. ATP reports errors if the syntax of the parameters violates the 
following rules:
°
There must be one parameter for each SQL placeholder in the SELECT 
statement.
°
If the number of parameters is greater than the number of SQL variable 
placeholders in the SELECT statement, the type of parameter following the last 
SQL placeholder must be the atp.transaction object.
°
You must check the validity of your own data. ATP V21 performs data 
conversions without checking validity. See Example G-1.










