ELIMINATING COLUMNS FROM MID-RECORD FROM COMPARISON
Posted: Tue Feb 08, 2005 5:54 pm
I'm a bit of a newbie to using EDPro, so I may be asking an obvious question, but I have yet to figure out how to do something that I thought would be a no-brainer. Here goes (at the risk of bruising my ego) -
I have a simple text file with thousands of 350+ byte fixed length records. Basically, its an interface file to another system. Records are mainly comprised of digits. In parallel testing of one version of our application with a newer version, we expect this output interface to be exactly the same, excepting for a datestamp in columns 44-47: This reflects when the file was generated. Of course, I am not trying to run the job at exactly the same time each day, so the actual time value varies.
This time-value is insignificant and I'd like to ignore those columns between files BUT compare all other columns on the record against its newer counterpart. Since all records are mostly numbers, and the numbers are not predictable - I am not sure how I'd use regex to eliminate these "parts" of the records. I can't figure out if a clever use of before/after columns ignore would work (my initial attempt to overlap the columns didn't - I didn't think that was the intent?)
Anyway, you get the idea by now. Help!
Thanks a ton to whomever can offer a solution. My ego will get over it, I'll learn something, but I sure need an answer fast.
Otherwise, love the software and its flexibility.
Thanks
I have a simple text file with thousands of 350+ byte fixed length records. Basically, its an interface file to another system. Records are mainly comprised of digits. In parallel testing of one version of our application with a newer version, we expect this output interface to be exactly the same, excepting for a datestamp in columns 44-47: This reflects when the file was generated. Of course, I am not trying to run the job at exactly the same time each day, so the actual time value varies.
This time-value is insignificant and I'd like to ignore those columns between files BUT compare all other columns on the record against its newer counterpart. Since all records are mostly numbers, and the numbers are not predictable - I am not sure how I'd use regex to eliminate these "parts" of the records. I can't figure out if a clever use of before/after columns ignore would work (my initial attempt to overlap the columns didn't - I didn't think that was the intent?)
Anyway, you get the idea by now. Help!
Thanks a ton to whomever can offer a solution. My ego will get over it, I'll learn something, but I sure need an answer fast.
Otherwise, love the software and its flexibility.
Thanks