Hey,
I'm trying to migrate a Cobol application to a Pervasive environment. It works quite well for simple files.
However I have following Cobol file:
FD File
FD-KEY
FD-FIELD1 PIC X(04)
FD-FIELD2 PIC X(09)
The File control section looks like this
SELECT ...
RECORD KEY IS FD-KEY
The problem is that my Cobol file has 1 key consisting of 1 segment taking byte 1 till 13
While migrating to a Btrieve/Pervasive file I have to create two columns being Field1 and Field 2 and I have to create an index on it.
This index is seen (using butil - stat) as 1 key consisting of 2 segments, the first taking byte 1 till 4, the second taking 5 till 13.
Which results in my application not working properly off course.
How to solve such a problem?
I'm trying to migrate a Cobol application to a Pervasive environment. It works quite well for simple files.
However I have following Cobol file:
FD File
FD-KEY
FD-FIELD1 PIC X(04)
FD-FIELD2 PIC X(09)
The File control section looks like this
SELECT ...
RECORD KEY IS FD-KEY
The problem is that my Cobol file has 1 key consisting of 1 segment taking byte 1 till 13
While migrating to a Btrieve/Pervasive file I have to create two columns being Field1 and Field 2 and I have to create an index on it.
This index is seen (using butil - stat) as 1 key consisting of 2 segments, the first taking byte 1 till 4, the second taking 5 till 13.
Which results in my application not working properly off course.
How to solve such a problem?