Β
Β
The challenge: Going from a structured database format to the following schema.Β
Β
FROMΒ
Β
WELL-1 01/01/2004 perforation 4000 4020 .5 0Β
WELL-1 01/12/2002 barefoot 3500 .4 -2Β
WELL-1 01/01/2005 rework 3600 3900 .380.5Β
WELL-2 01/01/2004 perforation 4000 4020 .5 0Β
WELL-2 01/12/2002 barefoot 3500 .4 -2Β
WELL-2 01/01/2005 rework 3600 3900 .380.5Β
Β
TO:Β
Β
UNITS FIELDΒ
WELLNAME WELL-1Β
--DATE EVENT MD1 MD2 Diameter SkinΒ
01/01/2004 perforation 4000 4020 .5 0Β
01/12/2002 barefoot 3500 .4 -2Β
01/01/2005 rework 3600 3900 .380.5Β
Β
WELLNAME WELL-2Β
--DATE EVENT MD1 MD2 Diameter SkinΒ
01/01/2004 perforation 4000 4020 .5 0Β
01/12/2002 barefoot 3500 .4 -2Β
01/01/2005 rework 3600 3900 .380.5Β
Β
In bold are the static schema/headers. In italics is the dynamic data.Β
Β
The problem is that the output file essentially strips the database 'style' and puts the well name in a row as the header. Then groups the data below it. There is a break then the next well and it's associated data.Β
Β
I thought about some type of fanout but need them in the same text file. It's not quite XML/JSON and not quite CAT.Β
Β
Wanted to put this out to the community in case someone has a creative approach. Otherwise I may have to look at this programmatically.Β
Β
Thanks!Β
Β
Β
MattΒ
Β



