I have received data from a client that is stored in variable block variable record length EBCDIC.
I need a program that will break out the records with a line feed and convert the data from EBCDIC to ASCII.
The EBCDIC to ASCII is optional as I have utilities (DD in *nix) that will accommodate that. If you chose to add that to the program a bonus will be paid.
The block size is the first 4 bytes of each block but in this file only the first 2 bytes are used. This is the same for the record length (4 bytes available but only first 2 are used). So the block and record size is a 16-bit number.
The block and record size information is not required in the final output but can be.
Attached is a sample raw file to be converted.