Brian,
MAXINT is an internal variable in UniVerse and you cannot change it. Can you find out what the user was doing or the program and line number where the error occured. For example there is a known issue from 11.3.1 fixed at 12.1.1.
At 11.3.1, using the RND() BASIC function with an argument larger than a 32bit int results in the following warning message being displayed.
>CT BP RND
RND
0001 X = RND(123456789012)
0002 CRT X
0003 END
At 11.3.1, the following warning is generated
>RUN BP RND
Program "RND": Line 1, Integer value over the MAXINT (2147483647). Zero used.
-1103528845
There is also the following outstanding bug as well
String extraction does not work if length is larger than maxint 2147483647
>CT BP MAXINTBUG
MAXINTBUG
0001 A = STR("A", 100)
0002 B = A[1,2147483648]
0003 PRINT A
0004 PRINT B
> RUN BP MAXINTBUG
Program "MAXINTBUG": Line 2, Integer value over the MAXINT (2147483647). Zero used.
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>
------------------------------
Jonathan Smith
UniData ATS
Rocket Support
------------------------------
Original Message:
Sent: 11-17-2022 09:10
From: Brian Paige
Subject: MAXINT error message
Hello all!
We are running UniVerse 11.3.4 on AIX 7.2. We just started this combination 2 months ago, though we've been running on UniVerse/AIX for many years. Yesterday we received a UV error during one of our users' sessions:
Integer value over the MAXINT (2147483647). Zero used.
We've never encountered that error before.
I've run searches through the $uvhome directory at the unix level, and the only references I can find to MAXINT are in python.tar. We're not running Python code and have not even licensed it.
We're looking at the issue, and it's most likely a data error, but is has raised my curiosity. Where is MAXINT set? Is it something we can control, or is it hard-coded into UniVerse somewhere? Has anyone ever had a need to modify the value - up or down?
------------------------------
Brian Paige
------------------------------