I have data in a file where lines end indicator is'~'
Can you help me create schema for the following data.
The actual data is after the second star in line.
ST*278*0001~
BHT*0078*13*A990145*20010912*1010~
HL*1**20*1~
Designing a schema involves deciding on the names of fields, their position in a hierarchy, and the datatypes & lengths of the field values.
It looks like in your example that the number of fields depends on the value of the first bit -- "ST" has two fields, "BHT" has five, and "HL" has four, where one is optional.
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first
Can you help me, I thought that I can use xml in order to get data from row file into db. Is it possible to format my example to be an XML file and then transfer into db?
Any idea will be helpful.
Thanks
I am learning XML and I for learning purpose I would like to know how to do this?
I know how to load a data from file to db, however it would be really nice to know xml also.
Thank you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.