Hello!
I'm trying to come up with an expression to extract a particular section of data from a string (and not having much luck).
Here's the layout of the data contained in the record strings in field1 of my table:
PART_NUMBER,PRODUCT_CODE,MATERIAL_DESC,UOM,VENDOR_NAME,HTSCODE,SCHBCODE,ECCN,USML,NSN,LIST,DISC,CORE
Here's a sample of the records contained in field1 of my table:
72325310-7,77,RETAINER: ASSEMBLY,EA,HONEYWELL L & E (DE PRICED),8531909001,8531900002,9A991.d,,,564.76,,
AA1H37-3,4K,VALVE: CHECK,NEW,EXCH,EA,TEMPEST PLUS MARKETING GROUP, LLC.,8481302090,8481302090,9A991.d,,,1174.88,,500
076308-45714,27,ABRASIVE: DISC,HOOKIT,947A,3IN,NH,120+,BOX,AVIALL DEFAULT VENDOR,6805100000,6805100000,EAR99,,,,,
0200A88BNES,1H,ENGINE: 0200A88B,NEW,EXCH,EA,CONTINENTAL MOTORS, INC.,8407100020,8407100020,9A991.d,,,30723.33,,11000
P450A0123-00,6S,PLATE IDENTIFICATION,EA,MOOG WOLVERHAMPTON LTD,,,,,,,,
2157-0167,E4,SLEEVE,EA,ROCKWELL COLLINS, INC.,,,,,,93.99,
I need to be able to extract the last 8 delimited pieces of each record into field2 of my table so that field2 would contain:
8531909001,8531900002,9A991.d,,,564.76,,
8481302090,8481302090,9A991.d,,,1174.88,,500
6805100000,6805100000,EAR99,,,,,
8407100020,8407100020,9A991.d,,,30723.33,,11000
,,,,,,,,
,,,,,93.99,
I've tried using the STREXTRACT function, but can't seem to make it play correctly. The delimiters (commas) need to remain intact in field2.
Any help would be appreciated!!
I'm trying to come up with an expression to extract a particular section of data from a string (and not having much luck).
Here's the layout of the data contained in the record strings in field1 of my table:
PART_NUMBER,PRODUCT_CODE,MATERIAL_DESC,UOM,VENDOR_NAME,HTSCODE,SCHBCODE,ECCN,USML,NSN,LIST,DISC,CORE
Here's a sample of the records contained in field1 of my table:
72325310-7,77,RETAINER: ASSEMBLY,EA,HONEYWELL L & E (DE PRICED),8531909001,8531900002,9A991.d,,,564.76,,
AA1H37-3,4K,VALVE: CHECK,NEW,EXCH,EA,TEMPEST PLUS MARKETING GROUP, LLC.,8481302090,8481302090,9A991.d,,,1174.88,,500
076308-45714,27,ABRASIVE: DISC,HOOKIT,947A,3IN,NH,120+,BOX,AVIALL DEFAULT VENDOR,6805100000,6805100000,EAR99,,,,,
0200A88BNES,1H,ENGINE: 0200A88B,NEW,EXCH,EA,CONTINENTAL MOTORS, INC.,8407100020,8407100020,9A991.d,,,30723.33,,11000
P450A0123-00,6S,PLATE IDENTIFICATION,EA,MOOG WOLVERHAMPTON LTD,,,,,,,,
2157-0167,E4,SLEEVE,EA,ROCKWELL COLLINS, INC.,,,,,,93.99,
I need to be able to extract the last 8 delimited pieces of each record into field2 of my table so that field2 would contain:
8531909001,8531900002,9A991.d,,,564.76,,
8481302090,8481302090,9A991.d,,,1174.88,,500
6805100000,6805100000,EAR99,,,,,
8407100020,8407100020,9A991.d,,,30723.33,,11000
,,,,,,,,
,,,,,93.99,
I've tried using the STREXTRACT function, but can't seem to make it play correctly. The delimiters (commas) need to remain intact in field2.
Any help would be appreciated!!