if you're comparing CSV files, and exporting to excel, why bother with the AS400? I'd use Access, it can open a CSV file, and I think it can save query results as excel.
I'm pretty sure there's a construct to find records that are missing from either file, but, I can't think of it off the top of my head. worst case, you can union two not in statements to get the same results.
Last Wiki Answer Submitted: February 27, 2007 8:28 am by MODMOD0 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Do you want to compare the .CSV files or the data in the files? For example, a numeric column might be 003.010 or it might be 3.01 — leading and trailing zeros make the file different even though the values are different. If you’re going to report differences back in Excel format, I’d expect that you’d want to compare the data while ignoring file differences.
Therefore, you might want to import the .CSV files into a database format. Then compare the resulting files. Differences should be reported in a XML format since Excel handles XML easily enough and it’s probably the easiest data format you can output to.
Do you want to compare the .CSV files or the data in the files? For example, a numeric column might be 003.010 or it might be 3.01 — leading and trailing zeros make the file different even though the values are different. If you’re going to report differences back in Excel format, I’d expect that you’d want to compare the data while ignoring file differences.
Therefore, you might want to import the .CSV files into a database format. Then compare the resulting files. Differences should be reported in a XML format since Excel handles XML easily enough and it’s probably the easiest data format you can output to.
Tom