-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File start/end offset issue for VB file #647
Comments
Hi @D3v3sh5ingh, what's your high level offset layout? For example: |
Hi @yruslan 45 bytes of header and trailer are inside the BDW as shown above. |
Since your 45 headers are part of record payload you can't do it using these options. What you can do is you can add the header as a redefine segment in your copybook, and then you can filter it out after you get the dataframe. The copybook will looks like this: 01 RECORD.
05 HEDAER.
10 CONTENT X(45).
05 PAYLOAD REDEFINES HEADER.
... your payload goes at level 10 here |
Hi , |
Options 'file_start_offset' and 'file_end_offset' only drop bytes from the beginning or at the end of files, not from the payload. This is the expected behavior. There are no options that allow dropping bytes from inside records, so possible solutions are:
|
Hi @yruslan
Issue : 643
File_start_offset and File_end_offset options for VB files are not working and throwing the same error as posted in issue 643.
I have a file with both RDW and BDW (Record Format VB) . The file is with header and footer also.
I want to skip first few bytes of header and last few bytes of footer.
For that using options file_start_offset and file_end_offset but getting the similar error as in issue 643.
The text was updated successfully, but these errors were encountered: