Sorry for my poor description. I'm a noob at db stuff
I don't have any examples because its done manually right now. So we are given a csv file that's has 100 rows. Then someone will take those 100 rows and manually make 100 inserts which take a column from another table and the data is joined by a key that is included in the csv file. The inserts are out into a sh file and that's executed on a unix box
What I wanted to do is have a sh file that reads the csv file row by row and makes the corresponding insert statement in some loop.
So the shell file would do this
1 take the input params
2 make the db2 connection
3 start loop
4 read next row in csv file
5 get Col from table based on key Val from csv row
6 insert all the data
7 loop next
8 commit
Sorry for the pseudo code. My laptop just died so I'm typing on my BB
Maybe I should be posting in the shell scripting forum...