Hi All,
I need to import a fixed width text file (actually a report run from a seperate program and saved as a text file), which is not a problem, but I also need to add a couple of fields and populate them with information from the report header. Here is a sample of the what the text file looks like;
Site: PRRY Production Tracking Page 1 of 32
Date: Mon Nov 26, 2007 13:28:26
From: Sun Nov 25, 2007 00:00:00 To: Sun Nov 25, 2007 23:59:59
Requestor:JAMES
Shift: 3 Finished and Non-Finished Goods
PKG Creation Creation
Product Description Location Date Time
----------------------------------------------------------
101567 2.99 Reg Flavor BP-104F 11/25 04:25
245689 Vend Barbeque PAL~02 11/25 04:26
987123 .99 Onion Rings BK~101 11/25 05:01
I only need to import the rows that meet my criteria (i.e. contains a product code), and at the same time I need to capture the date, Nov 25, 2007 from the row;
From: Sun Nov 25, 2007 00:00:00 To: Sun Nov 25, 2007 23:59:59
and add it to each record, as well as the shift, which would be shift 3 in this example.
Let me know if I need to clarify my problem some more.
Any suggestions?
Thanks in advance,
James
I need to import a fixed width text file (actually a report run from a seperate program and saved as a text file), which is not a problem, but I also need to add a couple of fields and populate them with information from the report header. Here is a sample of the what the text file looks like;
Site: PRRY Production Tracking Page 1 of 32
Date: Mon Nov 26, 2007 13:28:26
From: Sun Nov 25, 2007 00:00:00 To: Sun Nov 25, 2007 23:59:59
Requestor:JAMES
Shift: 3 Finished and Non-Finished Goods
PKG Creation Creation
Product Description Location Date Time
----------------------------------------------------------
101567 2.99 Reg Flavor BP-104F 11/25 04:25
245689 Vend Barbeque PAL~02 11/25 04:26
987123 .99 Onion Rings BK~101 11/25 05:01
I only need to import the rows that meet my criteria (i.e. contains a product code), and at the same time I need to capture the date, Nov 25, 2007 from the row;
From: Sun Nov 25, 2007 00:00:00 To: Sun Nov 25, 2007 23:59:59
and add it to each record, as well as the shift, which would be shift 3 in this example.
Let me know if I need to clarify my problem some more.
Any suggestions?
Thanks in advance,
James