R COBOL DI (Data Integration) Package: An R package that facilitates the importation of COBOL CopyBook data directly into the R Project for Statistical Computing as properly structured data frames.
Note that not all copybook files can be converted into CSV -- for example single-record type files can be converted to CSV however complicated multi-record type files will NOT map to CSV.
Example One : Local package installation and then convert a COBOL data files into data frames.
Load the RCOBOLDI package locally and use it to convert COBOL data files into data frames.
This example also includes a call to CobolToCSV
.
Docker Example : If you just want to try the package on some test data, start here.
All you'll need to run this example is Docker and an Internet connection.
The Java API uses Log4J and writes files to the ~/rcoboldi-package-logs/ directory. This file can be found here.
- AbsaOSS cobrix: A COBOL parser and Mainframe/EBCDIC data source for Apache Spark
- JRecord: Read Cobol data files in Java on SourceForge
- JRecord: Read Cobol data files in Java on GitHub
- EBCDIC
result <- RCOBOLDI::ReadCopyBookAsDataFrame("/home/rstudio/rcoboldi/java/rcoboldi-core/src/test/resources/example1/DTAR020.cbl", "/home/rstudio/rcoboldi/java/rcoboldi-core/src/test/resources/example1/DTAR020.bin", "Fixed Length Binary", "cp037")