This walkthrough describes how to convert existing COBOL data created with the RM/COBOL file formats to FairCom RTG COBOL data.
If you cannot create files with your COBOL application, ctutil can use your XFD (or XDD) files to create a new empty file having the same structure described by the XFD (or XDD) files.
The following steps are used to convert RM/COBOL files into RTG files. If you have already created the RTG files you can jump directly to step 2:
ctutil -make myctdata mydata.xfd
This command will create a file named myctdata using the image string obtained from the mydata.xfd.
ctutil -load -r2 myctdata mydata.dmp A
This command loads the data from the line sequential file called mydata.dmp and writes it to the mydata FairCom RTG COBOL data file. The -r2 is required and specific to RM/COBOL line sequential format.
ctutil -sqlize myctdata mydata.xfd ADMIN ctreeSQL
This command parses the mydata.xfd file and generates an XDD schema definition on the fly to be used by the FairCom RTG COBOL engine to import the data file as part of a SQL database.