Alas, I get the same result regardless of the order in which I name the tables. On an inner join the order shouldn’t matter anyway, but it was worth a try.
select ex5.grp, ex5.sub, ex5.id, 99999999 - ex5.effective eff_date, emp.term_date, bit_switch, dep_last_name_1, dep_first_name_1, dep_date_of_birth_1 dob, dep_bit_switch_1 dep_cir from test.user.catalog\t800.employee.aix5\c800ex5 as ex5 inner join test.user.catalog\t800.employee\c800emp as emp on ex5.prim_key = emp.key where ex5.grp = 'HVC' and ex5.sub = 'H01'
Connecting to VSETEST... 375.0 ms
Creating statement... 15.0 ms
Executing query...ERROR! java.lang.ClassCastException: com.ibm.vse.jdbc.VsamJdbcWhereClause cannot be cast to com.ibm.vse.jdbc.VsamJdbcSelectStatement
IBM support confirmed that there is a bug in the driver (thanks again Ingo), and it will likely be fixed in a future release. However what I was trying to do isn’t practical due to the size of my clusters. In a real world application I’d want to do it in two queries, or use the Redirector instead.
- gary