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

This was related to -811 sqlcode, In a COBOL DB2 program which accesses employee table and selects rows for employee 'A', it should perform a paragraph s001-x if employee 'A' is present. In this case it gets -811 sqlcode, but still it process the paragraph s001-x. What could be wrong in my code.

3 Answers  


Give the COBOL definition of a VARCHAR field.

2 Answers  


What are the various locking levels available?

3 Answers  


Before you give the explain statement, what are the prerogatives?

0 Answers  


What are db2 error codes -305 and -407. What is the difference between these 2 error codes ?

1 Answers  






How to update more then one record using update?

5 Answers   IBM,


What is cursor?

2 Answers  


Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?

1 Answers  


What is cloudant database?

0 Answers  


is it possible to get -811 error when you use cursors. why?

2 Answers   IBM,


Is db2 free?

0 Answers  


How to get Top 10 Salaries from a Table

11 Answers   Accenture, HTC,


Categories