I am trying to split a file into multiple smaller files.
A partner sends us data (X12) in the format below:
ISA
GS
ST
SE
ST
SE
GE
IEA
ISA
GS
ST
SE
GE
IEA
I need the output to be multiple files, each with one ST SE within one GS GE and one ISA IEA.
How do I do this? My map works when there is just one interchange (ISA) and one group (GS) in the input but not for multiple groups and interchanges in the same input file.
A partner sends us data (X12) in the format below:
ISA
GS
ST
SE
ST
SE
GE
IEA
ISA
GS
ST
SE
GE
IEA
I need the output to be multiple files, each with one ST SE within one GS GE and one ISA IEA.
How do I do this? My map works when there is just one interchange (ISA) and one group (GS) in the input but not for multiple groups and interchanges in the same input file.