Consider that a package is bound into 2 different
collections and the PKLIST option specifies both the
collections. If the collection id is not specified in the
program while executing the SQL query, then when the DB2
system will search the package list, which collection will
it pick up or will it give an error/abend?
Answer Posted / mani
Generally when the search is done the order in which the
collection id is specified in the list would be taken for
priority.
You can use the special register CURRENT PACKAGE PATH or
CURRENT PACKAGESET (if CURRENT PACKAGE PATH is not set) to
specify the collections that are to be used for package
resolution.
The CURRENT PACKAGESET special register contains the name of
a single collection, and the CURRENT PACKAGE PATH special
register contains a list of collection names.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What types of tables are there in the db2 database?
What is cloudant database?
What are host variables in db2?
Give the name of some fields form sqlca.
is it compulsory commitment control in journal?
What is isolation level in db2?
What is the role of data manager in the db2 database?
What's The Error Code For Unique Index Voilation?
Which component is used to execute the sql statements?
What is package in db2 mainframe?
How do you stop a db2 database in linux?
When reorg is used?
Explain what are the various isolation levels possible?
What is null indicator in cobol db2?
What is runstats db2?