Split redefine does not work on multiple levels.
Read Cobol data files in Java
Status: Beta
Brought to you by:
bruce_a_martin
Hi,
I Have a copybook with its content looking like the following:
01 Record.
05 Record-Header.
10 Record-Type. Pic X(8).
10 Record-Name. Pic X(8).
05 Record-Content.
10 Version. Pic X(4).
10 FILLER Pic X(15).
05 Record-AltContent REDEFINES Record-Content.
10 Age. Pic XX.
10 Address.
15 No. Pic XX.
15 St. Pic X(15).
10 City REDEFINES Address.
15 FILLER Pic X(2).
15 Zip. Pic X(7).
15 Name. Pic X(6).
15 FILLER Pic X(2).
05 More-stuff. Pic X(24).
I am able to read an associated ECBDIC file with no problem. However, I have some problems whenever I want to use the SPLIT_REDEFINE property.
I end up with only two records:
and
All sub redefines are not taken into account.
SPLIT_REDEFINE does not seems to work when multiple declarations on different levels are present.
Anonymous
Split redefines was intended for a single level redefine.
If the redefines are at different levels, how is the program supposed to work out which redefines to split on ???
You should still be able to process the file with JRecord. You just need to work out wich redefine is used.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
The problem is not with the file not being able to be processed. I have to select all fields from the redefine in lower levels instead of selecting a layout index.
Has this issue been resolved, as I am facing the same issue. Please let me know if there is a solution to this issue.
To Anonymous - No Change Generally you do not need to use a Split, it can be handled manually. If you