Sql loader
We currently use the when clause with sql loader to load to multiple tables without a problem but have a new scenario that we can't get working. We need to be use the returned value from a function call in the when clause. The example below fails to load any data, when we remove the when clause, the data loads and the record_type value is A so the function call is returning the correct value. Originally we had record_type POSITION(21:22) CHAR "trim(tempdb.get_rec_type(:record_code))" but that didn't work either, we thought it might be trying to datatype is as two bytes so
0