When you use CRTSQLPKG on a *PGM object, what determines the library where the *SQLPKG object is created?
Announcement
Collapse
No announcement yet.
What determines library for SQL Package?
Collapse
X
-
Yeah, I think you're right.
According to: https://www.ibm.com/support/knowledg...bal1sqlpkg.htm, "The new SQL package has the same name and is placed in the same library as specified on the PKG parameter of the CRTSQLxxx command."
I believe that should say: "...the SQLPKG parameter..."
Cheers,
Emmanuel
Comment
-
Oh I see now!
"PKG parameter of the CRTSQLxxx command" - I thought that was referring to the CRTSQLPKG command, but it's not, it's referring to the program/module compile command!
So the library is set as a parameter of the CRTSQLRPGI command used to compile the program. I see now, thank you.
Comment
Comment