Databaseguy
MIS
I am sequentially reading through an EDI docuemnt. Here is a snippet of the raw data:
LIN153CB919531819VASOM00064UP658378239647
ZAQA77EA
LIN154CB919531822VASOM00065UP658378239654
ZAQA96EA
ZAQS1EA
LIN155CB919531818VASOM00066UP658378239661
ZAQA21EA
LIN194CB919531941VAYDM00250UP658378253551
ZAQA2779EA
ZAQP1056EA
ZAQS2EA
I am using the split function and reading the data into an array (myarray).For example, the first line becomes in myarray (LIN,153,CB,919531819,VA,SOM00064,UP,658378239747)
I then take the 7th element (the UPC) and write it to my db.
Now, my problem is the Lines starting with ZA. You'll notice that sometimes they have two or three entries, and sometimes only one. The 2nd element, QS , QP and QA have different meanings. How do I grab one, both values or all three values ?
This should be simple. I just can't see the forest cuase of trees.
Tyrone Lumley
augerinn@gte.net
LIN153CB919531819VASOM00064UP658378239647
ZAQA77EA
LIN154CB919531822VASOM00065UP658378239654
ZAQA96EA
ZAQS1EA
LIN155CB919531818VASOM00066UP658378239661
ZAQA21EA
LIN194CB919531941VAYDM00250UP658378253551
ZAQA2779EA
ZAQP1056EA
ZAQS2EA
I am using the split function and reading the data into an array (myarray).For example, the first line becomes in myarray (LIN,153,CB,919531819,VA,SOM00064,UP,658378239747)
I then take the 7th element (the UPC) and write it to my db.
Now, my problem is the Lines starting with ZA. You'll notice that sometimes they have two or three entries, and sometimes only one. The 2nd element, QS , QP and QA have different meanings. How do I grab one, both values or all three values ?
This should be simple. I just can't see the forest cuase of trees.
Tyrone Lumley
augerinn@gte.net