where will u check for sqlcode ?

Answers were Sorted based on User's Feedback



where will u check for sqlcode ?..

Answer / shaan

Be sure to include sqlca in working storage section.
Then you can check sqlcode from the copybook variable SQLCODE.

Is This Answer Correct ?    15 Yes 0 No

where will u check for sqlcode ?..

Answer / guru

If you dont include SQLCA, Define SQLCODE and SQLSTATE as
working storage variables and This will suffice

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is database reorganization?

0 Answers  


How can you find out which query is taking lot of time to execute in cobol-db2 program ?

1 Answers   Danske,


what is contained in the DB2 node lock file? A) data base names B) data base users names C) license keys D) server names

5 Answers   Accenture,


how to check the table is empty or not?

3 Answers   IBM,


What is a synonym? How is it used?

2 Answers  






What will the COMMIT accomplish?

5 Answers  


What is a collection in db2?

0 Answers  


What is deadlock in db2?

0 Answers  


Name the different types of Table spaces.

5 Answers   IBM,


how to fetch multiple records without using cursor

14 Answers   HCL,


Assuming that a site's standard is that pgm name = plan name, what is the easiest way to find out which Will precompile of an DB2-COBOL program bomb, if DB2 is down?

1 Answers  


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?

1 Answers  


Categories