Mar 1, 2001 #1 rishiu Programmer Feb 26, 2001 22 US What is the difference between a bad file and a discard file in SQL loader? Rishiu
Mar 2, 2001 #2 Kenrae Programmer Feb 7, 2001 174 ES The bad file contains those rows that had an error. Maybe the data file had some format errors, or maybe you had some constraints violated. The discard file is not related to errors, but to data which didn't satisfy any of the when clauses in your control file. For example, you could state that only data with a>3 (being 'a' a field) be loaded. Then a field like that: a b c 2 1 3 would be discarded. Then, if a is a PK, and you have a row whose value is 1, a field like that: a b c 1 1 1 would be bad. Regards Upvote 0 Downvote
The bad file contains those rows that had an error. Maybe the data file had some format errors, or maybe you had some constraints violated. The discard file is not related to errors, but to data which didn't satisfy any of the when clauses in your control file. For example, you could state that only data with a>3 (being 'a' a field) be loaded. Then a field like that: a b c 2 1 3 would be discarded. Then, if a is a PK, and you have a row whose value is 1, a field like that: a b c 1 1 1 would be bad. Regards
Mar 2, 2001 Thread starter #3 rishiu Programmer Feb 26, 2001 22 US Thks Kenrae, I got it! Ru Upvote 0 Downvote