The samples directory includes conversion routines that can be integrated into your programs. These samples allow you to create additional functionality that is not required to implement FairCom RTG.
acucobol
cscopy.cbl – A sample COBOL program that provides a working example of using the COBOL C$COPY functionality for properly copying a FairCom RTG data file.
getinfo.cbl – A COBOL program that shows how to retrieve file information.
visionconvert
filesys.def – Contains variables and values for use with the ACUCOBOL file handler.
mig.cbl – An example of a COBOL program to migrate files from Vision to c-tree by reading from the Vision database and writing into the c-tree database.
readme.txt
XDDcheck
filesys.def – Contains variables and values for use with the ACUCOBOL file handler.
xddchk.cbl – A COBOL program that reads an XDD and validates it.
xdddef.def – Contains return codes and definitions used by xddchk.cbl.
extfh\mfconvert
mfconvert.cbl – A COBOL program to migrate files from the configured Micro Focus file system to c-tree by reading from the original file system and writing to c-tree.
xfhfcd.cpy – Contains variables for use with the Micro Focus ExtFH file handler.
iscobol
cobol-esql.cbl – This example shows how to use Veryant’s isCobol Embedded SQL API in your program. Note: This is not the FairCom Embedded SQL that is included with FairCom DB.