More than one field returned with getGroupField
Read Cobol data files in Java
Status: Beta
Brought to you by:
bruce_a_martin
When trying to fetch a field with record.getGroupField("A", "B-LINE-CNT") it returns both
A.B-LINE-CNT and A.D.B-LINE-CNT.
01 A.
05 B-LINE-CNT PIC S999 COMP-3.
05 C.
05 D REDEFINES C.
10 B-LINE-CNT PIC S999 COMP-3.
How can I just fetch the 1 field?
Thanks for your time
Anonymous
Diff:
Diff:
Try the followin (see attached program for test program):
I will add this to JRecord, but I wont release it until I have more changes.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Thanks Bruce, you're awesome! Any plans to eventually push such functionality into the JRecord codebase?
And thanks again.
I will include it in JRecord (probably in record.getGroupField(..) method. It should be in the next release when ever that comes out.
Note: I suggest getting Sourceforge user id as
The functionality should be in Version 0.90