I am closing this discussion and created a topic in Help. Sorry wrongly selected topic.
Hi I need some help parsing the variable length data. Please see the copybook (some of the fields are deleted for privacy) 01 AB-DETAIL-RECORD. 05 AB-FIXED-AREA. 10 AB-DOB PIC 9(07). 10 AB-SEX-CODE PIC X(01). 88 AB-VALID-VALUES VALUE 'M' 'F' 'U'. 10 AB-COUNT PIC 9(03). 88 AB-COUNT-DELETE VALUE 0. 05 AB-VARIABLE-DATA. 10 AB-DATA OCCURS 0 TO 155 TIMES DEPENDING AB-COUNT INDEXED AB-INDEX AB-LIMIT. 15 AB-FRM-DTE PIC 9(07). 15 AB-XXX PIC X(10). In the above copy book, the fixed area length is 35 bytes...
@bruce_a_martin - I was looking below thread and ours is a simple depending occurs. When I run the code that RecordEditor generated, its printing the FixedArea and then repeating one time the variable data and stopping. The lineReader is reading the the line as FixedLength at 3445 characters (by calculating the fixed Area length and variable data times number of occurrences) I tried with cb2Xml also, its the samething. I know I am missing something... https://sourceforge.net/p/jrecord/discussion...
Hi I need some help parsing the variable length data. Please see the copybook (some of the fields are deleted for privacy) 01 AB-DETAIL-RECORD. 05 AB-FIXED-AREA. 10 AB-DOB PIC 9(07). 10 AB-SEX-CODE PIC X(01). 88 AB-VALID-VALUES VALUE 'M' 'F' 'U'. 10 AB-COUNT PIC 9(03). 88 AB-COUNT-DELETE VALUE 0. 05 AB-VARIABLE-DATA. 10 AB-DATA OCCURS 0 TO 155 TIMES DEPENDING AB-COUNT INDEXED AB-INDEX AB-LIMIT. 15 AB-FRM-DTE PIC 9(07). 15 AB-XXX PIC X(10). In the above copy book, the fixed area length is 35 bytes...