I am trying to load data into a db2 target table from a csv file using the ingest utility. I see the header row getting rejected with an error message. Is there any option (similar to skipcount in import utility) to skip the header row so to avoid getting the rejected message ?
Asked
Active
Viewed 219 times
1
-
Is INGEST stopping or is it a warning? – data_henrik Aug 11 '21 at 08:57
-
ingest is not stopping but it shows a warning message everytime saying row rejected. Is there a way to skip the header row so to avoid this warning message every time? – vineeth Aug 11 '21 at 09:46
1 Answers
2
You could use a named pipe with INGEST.
Something like this:
mkfifo mypipe
tail -n +2 data.csv > mypipe
Then read from mypipe.

data_henrik
- 16,724
- 2
- 28
- 49
-
Thanks @data_henrik it was really useful and When i run the ingest with the delete statement it gives the number of rows inserted as 0 and doesn't show the number of rows deleted. Is there any option to show the number of rows deleted ? – vineeth Aug 12 '21 at 06:29
-