Product Documentation

BTRV Edition User's Guide

Previous Topic

Next Topic

BTRV Conversion Example

To copy and convert data from BTRV files into FairCom RTG, use ctmigra as shown below:

Windows x86

ctmigra.exe btrv –s WBTRV32.DLL S:\Data.PSQL\MYFILE D:\Data.RTG\MYFILE.dat

Windows x64

ctmigra.exe btrv –s w64btrv.dll S:\Data.PSQL\MYFILE D:\Data.RTG\MYFILE.dat

Unix/Linux

./ctmigra btrv –s libpsqlmif.so /data.psql/myfile /data.rtg/myfile.dat

Previous Topic

Next Topic

Micro Focus COBOL Migration Example

Note: This example can be useful for Btrieve users as well as COBOL users.

To copy and covert data from Micro Focus COBOL tables into FairCom RTG, use ctmigra as follows:

ctmigra extfh -s C:\MICROFOCUS\lib\MFFH.DLL!MFFH S:\Data.MF\MYFILE D:\Data.RTG\MYFILE.dat

To use ctmigra with Unix-based Micro Focus libraries, be sure to pre-load them with the LD_PRELOAD environment variable or an alternative mechanism.

For example, on an AIX 64-bit platform (this is all on a single command line):

LDR_PRELOAD64=libcobrts64.3.so:libcobcrtn64.3.so:libcobmisc64.3.so ctmigra extfh -s libcobrts64.3.so!EXTFH /data/mf/myfile /data/rtg/myfile.dat

For example, on a Linux 32-bit platform (this is all on a single command line):

LD_PRELOAD=libcobrts.so:libcobcrtn.so:libcobmisc.so ctmigra extfh -s libcobrts.so!EXTFH /data/mf/myfile /data/rtg/myfile.dat

TOCIndex