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?



Consider that a package is bound into 2 different collections and the PKLIST option specifies both..

Answer / 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

More DB2 Interview Questions

What do you mean by storage group (stogroup)?

0 Answers  


wht happens if we close cursor with cursor with hold option?

3 Answers   Valtech,


What is a page in db2?

0 Answers  


What is coalesce in db2?

0 Answers  


My SQL is not performing well. Describe how will you fine tune it?

1 Answers   Accenture,






What is tablespace?

3 Answers  


How do I add a column to a table in db2?

0 Answers  


How do I create a table MANAGER (EMP-NO, MANAGER) where MANAGER is a foreign key which references to EMP-NO in the same table? Give the exact DDL.

3 Answers  


Explain the function of data manager.

0 Answers  


Outputs of explain are with matchcols = 0. What does this signify?

0 Answers  


Explain the contention situations caused by locks?

0 Answers  


How to fetch the uncommited data from table ?

1 Answers   JPMorgan Chase,


Categories