Skip to content

CURLIB in SQL job #454

@p-behr

Description

@p-behr

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.

Image Image

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.

Image

If I use Ctrl+R to interactively run the same CREATE statement using *SYS naming, the table will be created...

Image

But it's created in QGPL:

Image

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions