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

Migration Considerations
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
G-2
ATP Parser Differences
Number
JavaScript variable has no data type. Double is the internal data type for all numbers
in JS engine
atp.print(Number(123456789.00)) -> 123456789
NSK is not good at double arithmetic precision, for example:
atp.print(Number(2147483648)) = 2147483648
atp.print(Number(2147483649)) = 2147483648.99999999
atp.print(Number(2147483649).toPrecision(10)) = 2147483649
parserInt
Can only handle value from -2147483648 to 2147483647
Overflow/Underflow will return the string ‘NaN’.
Array
ATP 2.0 max array size -> 2147483646
ECMAv3 max array size -> 4294967295
ATP Parser Differences
In general, ATP releases V20 and V21 perform more syntax checking than previous
versions while preprocessing the source files.
Server -Side Script Tags
Unmatched tags: The ATP parser will report an error if there is no end-tag for the
corresponding begin-tag.
Server-Side Includes
This is not allowed, and an error will be reported by the ATP parser if you have a server-
side include tag inside a Javascript function body. For example,
Source File: xyz.atp
<server>
function abc ( ) {
<!-- #include file= “abc.atp” -->
...
}
</server>