You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new way of handling variable-length records has been introduced to parse ASCII variable line length files and binary files with variable length OCCURS that don't have RDWs.
The interface of a raw record extractor is very simple. It is an iterator of record bytes in a file.
The array of bytes for each record is going to be parsed according to the copybook. The record extractor has the freedom to parse records however it wants.
Feature
Raw record extractors can be adapted to make record extractor customizable, which fixed the issues 1-4.
For exampe a custom raw record parser can look like this,
Background
Custom record header parsers have several limitations:
A new way of handling variable-length records has been introduced to parse ASCII variable line length files and binary files with variable length OCCURS that don't have RDWs.
The interface of a raw record extractor is very simple. It is an iterator of record bytes in a file.
The array of bytes for each record is going to be parsed according to the copybook. The record extractor has the freedom to parse records however it wants.
Feature
Raw record extractors can be adapted to make record extractor customizable, which fixed the issues 1-4.
For exampe a custom raw record parser can look like this,
The record index is needed since after a sparse index is generated the input file will be read in parallel staring from different offsets.