-
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
How to approach multi codepage datasets? #574
Comments
This is a very good question. This is not supported at the moment, but shouldn't be very hard to add. |
This is how it is supported in the current master, and will be in
You can specify a code page, and the list of fields that have that encoding. |
Thank you @yruslan will test it out. |
Background [Optional]
Hi, I'm currently working on a use case where we have:
-a fairly complex copybook (some 1700 lines)
-several record types (variable length)
-several fields which contains free text
-several different codepages were used (based on country code)
One example would be this record:
*** ========= ... ... TEXT==========================
15 ...-REC....
20 ...-...-TIMESTAMP PIC X(26).
20 ...-...-CLTX-TEXT PIC X(4026).
I may overlook something, but in order to get a readable data for all countries, I need to parse the cobol file for every codepage (i have to define the code page during the cobrix configuration) which is used, then filter the data based on country code, write out the df and finally, merge all the df-s.
Ideally, only the specific fields should be decoded with specific codepages, and this should be done by one parse action.
Question
Is there a way to apply business logic and based on that, use the correct code page during the parsing?
Many thanks for your help.
The text was updated successfully, but these errors were encountered: