Skip to main content

Problem:

COBOL program calling Btrieve

Resolution:

===========

INTRODUCTION

==========

This demo shows how to make calls to Btrieve by directly calling the _btrv module as you would make calls to the Btrieve API instead of using the xfh2btr call conversion module and COBOL file i-o syntax.

SOURCE FILES:

=========

Program Files     Description

----------------     -----------------------------------------------------------

btrvtest.cbl        The demo program.

Copy Files:

----------------     -----------------------------------------------------------

btconsts.cpy      Btrieve operation codes.

REQUIREMENTS:

==========

This demo was tested using NetExpress 3.1, along with either Btrieve 6.15 or Pervasive SQL 7.

OPERATION:

=======

The program makes 3 calls to _btrv. A file is created, opened, and closed. Each call is followed by a test of the call status and displays whether the call passed or failed.

NOTE:

====

You should link the module _btrv.obj with your executable.

=========================================================

Keywords: demonstration, sample, example, demo, btrvtest.zip

demo.ex

demo.ne

Attachments:

btrvtest.zip

Old KB# 3988