Skip to main content

[archive] BTRIEVE API Calls.

  • February 22, 2008
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 21 February 2008]

Does anybody have any examples of BTRIEVE API calls in Cobol. I've got a project that I'm going to be starting on where I need to use these calls to access a Pervasive database through this API. I did some searching on the sample program page and here in the forums and didn't seem to come up with anything. I've got the documentation from the Pervasive web site, and it doesn't look like it would be that difficult, but a couple of test have come up with no results.

Thanks,

Steve

4 replies

[Migrated content. Thread originally posted on 21 February 2008]

Does anybody have any examples of BTRIEVE API calls in Cobol. I've got a project that I'm going to be starting on where I need to use these calls to access a Pervasive database through this API. I did some searching on the sample program page and here in the forums and didn't seem to come up with anything. I've got the documentation from the Pervasive web site, and it doesn't look like it would be that difficult, but a couple of test have come up with no results.

Thanks,

Steve
ACUCOBOL-GT has a btrieve interface that can be used with Pervasive. You might want to contact Sales and Technical Support as there are customers that do this now with the btrieve.dll that Acucorp can provide.

[Migrated content. Thread originally posted on 21 February 2008]

Does anybody have any examples of BTRIEVE API calls in Cobol. I've got a project that I'm going to be starting on where I need to use these calls to access a Pervasive database through this API. I did some searching on the sample program page and here in the forums and didn't seem to come up with anything. I've got the documentation from the Pervasive web site, and it doesn't look like it would be that difficult, but a couple of test have come up with no results.

Thanks,

Steve
We already are doing btrieve calls through a dll that was written years ago by one of our C developers. I was hoping to get away from this and to call the btrieve.dll directly through our code without any interface. I just don't know if it's possible without having to purchase the interface. Especially since our customers already have to purchase the Btrieve database engine as well as the client for all of their pc's. Maybe someone could explain to me, why I would need to purchase another interface piece to make this happen. Isn't the btrieve dll just a standard API type dll. Looking at the C code, that's all it appears to be.

[Migrated content. Thread originally posted on 21 February 2008]

Does anybody have any examples of BTRIEVE API calls in Cobol. I've got a project that I'm going to be starting on where I need to use these calls to access a Pervasive database through this API. I did some searching on the sample program page and here in the forums and didn't seem to come up with anything. I've got the documentation from the Pervasive web site, and it doesn't look like it would be that difficult, but a couple of test have come up with no results.

Thanks,

Steve
After doing some research, I found that the ACUCOBOL-GT btrieve interface, allows you to use direct file access functions without the use of the DLL. This appears to be designed more for using as a database for your application. We are still using Vision files for our own files, the use of the Btrieve (Pervasive) data is from a system that we interface to. We access the database through the DLL to read/Write/Update their records, but still maintain the same data in our software data files.

I have been able to get the API calls working, it was just a matter of setting up the correct data variables that are compatible. Now I have to research this other applications formats to find out what and how data is stored in their files. At least I have the C structures to work with, so that shouldn't be too much of a problem.

[Migrated content. Thread originally posted on 21 February 2008]

Does anybody have any examples of BTRIEVE API calls in Cobol. I've got a project that I'm going to be starting on where I need to use these calls to access a Pervasive database through this API. I did some searching on the sample program page and here in the forums and didn't seem to come up with anything. I've got the documentation from the Pervasive web site, and it doesn't look like it would be that difficult, but a couple of test have come up with no results.

Thanks,

Steve
After doing some research, I found that the ACUCOBOL-GT btrieve interface, allows you to use direct file access functions without the use of the DLL. This appears to be designed more for using as a database for your application. We are still using Vision files for our own files, the use of the Btrieve (Pervasive) data is from a system that we interface to. We access the database through the DLL to read/Write/Update their records, but still maintain the same data in our software data files.

I have been able to get the API calls working, it was just a matter of setting up the correct data variables that are compatible. Now I have to research this other applications formats to find out what and how data is stored in their files. At least I have the C structures to work with, so that shouldn't be too much of a problem.