db2i Version 1.15.1
The current library is not set properly in SQL job.
In Code for IBM i, I set the current library. I can use the RUNSQLSTM Action to create an unqualified object using *SYS naming, and it will be created in the current library.
When I start an SQL job, it uses the library list from Code for IBM i. The libraries are in the proper order, but the current library is not set.
If I use Ctrl+R to interactively run the same CREATE statement using *SYS naming, the table will be created...
But it's created in QGPL:
I can change to use *SQL naming instead of *SYS naming, it does seem to use the first library as the default (even without the current library being set). Would very much like a way to set the current library for *SYS naming.
Thanks!
db2i Version 1.15.1
The current library is not set properly in SQL job.
In Code for IBM i, I set the current library. I can use the RUNSQLSTM Action to create an unqualified object using *SYS naming, and it will be created in the current library.
When I start an SQL job, it uses the library list from Code for IBM i. The libraries are in the proper order, but the current library is not set.
If I use Ctrl+R to interactively run the same CREATE statement using *SYS naming, the table will be created...
But it's created in QGPL:
I can change to use *SQL naming instead of *SYS naming, it does seem to use the first library as the default (even without the current library being set). Would very much like a way to set the current library for *SYS naming.
Thanks!