AbsaOSS / cobrix

A COBOL parser and Mainframe/EBCDIC data source for Apache Spark
Apache License 2.0
136 stars 77 forks source link

Does Cobrix provide a way to convert Text File to EBCDIC Binary fromat Conversion #709

Open pinakigit opened 1 week ago

pinakigit commented 1 week ago

Background [Optional]

Currently we are using SFTF to transfer binary files to Cloud and use Cobrix to read the Binary files to convert to ASCII.

Question

We are also looking to SFTP files back to MF from Cloud. Does Cobrix provide a way to convert ASCII files to EBCDIC Binary Copybook format which we can SFTB back to Mainframe. The other way is that we SFTP the delimited files back to Mainframe and write a Utility to convert it back to EBCDIC in Mainframe.

But will like to know fi this can be done in Cloud itself.

yruslan commented 1 week ago

Hi, @pinakigit , sorry conversion to EBCDIC is not supported. There is an issue for implementing the writer (https://github.com/AbsaOSS/cobrix/issues/415), but I'm not sure when we going to have time to do it - it requires a big effort.