Hi,
I have a problem with a binary file.
I'm using a pro-iv vers 4.6 with unix aix.
I have a update that read and write many records.
When the file dimension is about 2 gb pro-iv return me an error "Error in writing file"
Where is the problem? Unix ? Pro-iv? Binary File?
Thanks in advance
Marco
BINARY FILE TYPE
Started by Marco.Bega, May 03 2006 04:07 PM
4 replies to this topic
#2
Posted 03 May 2006 - 04:25 PM
Hi,
It could be your version of UNIX.
Some versions have a 2GB limit per file...
Rob D.
It could be your version of UNIX.
Some versions have a 2GB limit per file...
Rob D.
#3
Posted 04 May 2006 - 09:46 AM
Yep, it's almost certainly the 2Gb limit. We're in the process of porting from Unix to Linux, and I came across this problem recently. One tar file being created was going to be approx 3Gb, and failed when writing to Unix.
We had to unmount and re-mount the file system being used, and specified it as Large File Compatible. It worked fine then.
This was only a temporary transfer directory though. I'm not sure if Large File Compatible file systems have any implications for a live Pro-IV data directory.
HTH
Mike
We had to unmount and re-mount the file system being used, and specified it as Large File Compatible. It worked fine then.
This was only a temporary transfer directory though. I'm not sure if Large File Compatible file systems have any implications for a live Pro-IV data directory.
HTH
Mike
Magicians disappear all the time, but as soon as a regular person does it, everyone is all scared.
#5
Posted 03 January 2007 - 10:11 PM
I had tried to do a cut from one file 2gb dimension
with a second file 2gb, and unix had created a new file from 4gb.
The server is an AIX with o.s. lastets version, and it isn't unlimited files dimension.
thanks
marco
The limitation is within PROIV. It uses a 32 bit wordlength for addressing (on 32 bit kernels anyway). The solution is to create two seperate text files i.e. create a function with two cycles containing your driver file and text file and then use SEL-RANGE to select your record sets in these cycles e.g. first cycle selects records from A to M and the second selects N to Z
You can use the same file definition for both text files - just use the alias command to assign the logical to the desired physical.
Things should be made as simple as possible, but not simpler
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users