I think it's something along those lines, but I don't think it's trying to stick the entire contents of the file into a variable. What I think OPENSEQ is doing is keeping track of the position where the EOF mark is so it will know when the end of the file is reached. For a file greater than 2GB in size, this position is an integer that takes more than 32 bits to store. UV, being a 32-bit application, is not going to be able to handle it. The maximum positive integer value a 32-bit application can reference is 2147483647.
One workaround might be to use EXECUTE to shell out to an OS-level command or script that parses the file out into multiple smaller temp files that can then be accessed by UV. -John -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of jpb-u2ug Sent: Monday, May 17, 2010 12:33 PM To: 'U2 Users List' Subject: Re: [U2] OPENSEQ and Abnormal termination of UV Let me see, can it be because you are trying to cram over 4 GB of data into a single cell. Unlike the OPEN statement that just puts the file variable into a variable, the OPENSEQ opens the whole file to the variable. Jerry Banker -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Rajesh Menon Sent: Monday, May 17, 2010 1:56 PM To: u2-users@listserver.u2ug.org Subject: [U2] OPENSEQ and Abnormal termination of UV Does anyone knows what is happening here: I am trying to open a text file (over 4Gb) using OPENSEQ and storing the file variable into a array as follows: COMMON /MYPROG/ FILEVARS(10) OPENSEQ "/tmp/file.txt" to FILEVARS(1) ELSE ... This operation results abnormal termination with fault type error 11. Fault occurred at address 1c (which is the OPENSEQ command.). If the file size is less than 2147483647 bytes (2Gb), it works. Opening the same file using a scalar file variable always work irrespective of the file size. OPENSEQ "/tmp/file.txt" TO FV.FILE ELSE ... Any reason why the first method failing for +2Gb files? Any workarounds? Universe: 10.2.7 AIX: 5.3 Thanks Rajesh Menon _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users