-
Notifications
You must be signed in to change notification settings - Fork 82
Description
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:
10 FILLER REDEFINES ...-DATAPART.
*** ========= ... ... 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.