I have written a Java program that is executed on an iSeries AS400. Within that program, I use a JDBC connection to the same machine to query data from the files like
select *
from xyzcapad.myFile
where lastName = 'Max'
The same file name and structure (not data!) exist in multiple libraries because we have multiple environments on our AS400 and each has its own default libraries.
So when I now start the program and run it in the environment that is using library xyzcapad, all works well. But if I run it in another env., how can I tell my program to use the other default library for that table?