I have a flat file with multiple header/line iterations (Lawson RQ500, in case anyone knows it). Each header/line record is 2330 in length:
Apologies in advance if I get the BBCodes wrong.
Here’s a sample of the file:
[code]
H10000000000000000PYXIS CVICU20210316202103161000600
L10000000000000000151515659 CALCIUM ALGINTE
L10000000000000000151517854 CANNISTER SUCTION 1200CC
L10000000000000000151522200 SUCTION YANKER
L10000000000000000151531524 KNEE IMMOBILIZER 22
L10000000000000000151535005 TUBE CONN 72
L10000000000000000151535104 TUBE CONN 144
H10000000000000000PYXIS MICU 20210316202103161000600
L10000000000000000151504604 CATHLON 20 X 1
L10000000000000000151511831 SUCTION CATH CL
L10000000000000000151516533 TUBING FILTER FOR PLATELETS
L10000000000000000151517854 CANNISTER SUCTION 1200CC
L10000000000000000151522200 SUCTION YANKER
L10000000000000000151525559 TRAY URIMETER W/SENSOR
L10000000000000000151528058 FOAM BODY CLEANSER
L10000000000000000151529245 POWDER ANTIFUNGAL 3 OZ
L10000000000000000151535005 TUBE CONN 72
L10000000000000000151535104 TUBE CONN 144
L10000000000000000555506605 NOR SAL 1000 8309
L10000000000000000555511509 SET INFUSION 5 VALVE 138
H10000000000000000PYXIS MICU120210316202103161000600
L10000000000000000151515842 IV START KIT
H10000000000000000PYXIS SICU 20210316202103161000600
L10000000000000000101007582 DEODORIZOR ROOM
L10000000000000000151505420 Chloraprep Applicator 3ml
L10000000000000000151511831 SUCTION CATH CL
L10000000000000000151515614 STATLOCK PICC PLUS PIC0222
L10000000000000000151520800 FECAL MANAGEMENT KIT 411100
L10000000000000000555511308 PLUM SET 1424228
[/code]
I created separate FRL’s for header and lines, the put them in an HRL with separate header and lines segments.
I set the HEADER segment to repeat while HEADER.record_type value is H.
I set the LINES segment to repeat while LINES.record_type value is L.
All I get in the testing tool is the first header and the first set of lines.
How do I repeat over the header/lines to get all headers and lines?