People Actually DO THAT?!?

cacharbe on 2002-04-11T13:12:32

The Current Process:

  1. Users (from various locations) ftp files containing financial data to a central repository in Tab delimited files
  2. Someone (by hand) opens these files one at a time and Copy/Pastes them into Excel.
  3. Final combined file is saved out to One Big Frickin TAB file(tm)
  4. Two tables are created prior from a Duns & Bradstreet SAM dB export into MS Access
  5. Using queries as filters, said TAB file is loaded into Access, filtered and exported back out
  6. Final file is uploaded to the SAM database
  7. Rinse-Repeat, once a week. Process takes 3-7 hours from start to finish


WHAT?!? Who the hell thought that one up?!?



My solution? - Write 200 Lines of code (exactly, as a matter of fact) that:

  1. Traverses the Dir tree (File::Find)
  2. Validates each entry from the files against Enterprise SQL server tables (Automated / Scheduled Import into SQL tables from SAM)
  3. Creates proper upload file and updates an 'unknown' table for unknown entries for user validation via a web based interface
  4. One button click, or automated scheduled process (still in debate)
  5. Total Time from start to upload - 34 seconds to 2 minutes, depending on number of files and file size.




I can't stand inefficiency...It's chaps my ass.

C-.