alhassani54
Programmer
Hi
I have a file which contain one line of data
For example
UNB+UNOA:2+FPC1+FPA1+061026:0747+00000002++FINFH+++UNKNOWN'
UNH+00000002+FINFH:0:3:FH'BGM+++243:200610260047:306+505'UN
T+3+00000002'UNZ+1+00000002'UNB+UNOA:2+FPC1+FPA1+061024:124
1+00000043++FINFH+++UNKNOWN'UNH+00000046+FINFH:0:3:FH'BGM++
+243:200610241241:306+505'UNT+3+00000046'UNZ+1+00000043'
I would like to split the file to two files
File one:-
UNB+UNOA:2+FPC1+FPA1+061026:0747+00000002++FINFH+++UNKNOWN'
UNH+00000002+FINFH:0:3:FH'BGM+++243:200610260047:306+505'UN
T+3+00000002'UNZ+1+00000002’
File two:-
UNB+UNOA:2+FPC1+FPA1+061024:1241+00000043++FINFH+++UNKNOWN'
UNH+00000046+FINFH:0:3:FH'BGM+++243:200610241241:306+505'UN
T+3+00000046'UNZ+1+00000043’
I have a file which contain one line of data
For example
UNB+UNOA:2+FPC1+FPA1+061026:0747+00000002++FINFH+++UNKNOWN'
UNH+00000002+FINFH:0:3:FH'BGM+++243:200610260047:306+505'UN
T+3+00000002'UNZ+1+00000002'UNB+UNOA:2+FPC1+FPA1+061024:124
1+00000043++FINFH+++UNKNOWN'UNH+00000046+FINFH:0:3:FH'BGM++
+243:200610241241:306+505'UNT+3+00000046'UNZ+1+00000043'
I would like to split the file to two files
File one:-
UNB+UNOA:2+FPC1+FPA1+061026:0747+00000002++FINFH+++UNKNOWN'
UNH+00000002+FINFH:0:3:FH'BGM+++243:200610260047:306+505'UN
T+3+00000002'UNZ+1+00000002’
File two:-
UNB+UNOA:2+FPC1+FPA1+061024:1241+00000043++FINFH+++UNKNOWN'
UNH+00000046+FINFH:0:3:FH'BGM+++243:200610241241:306+505'UN
T+3+00000046'UNZ+1+00000043’