In SPUFI suppose you want to select maximum of 1000 rows,
but the select returns only 200 rows. What are the 2
SQLCODEs that are returned?



In SPUFI suppose you want to select maximum of 1000 rows, but the select returns only 200 rows. Wh..

Answer / rajesh melwani

Spufi returns two SQLCODEs as following:
{1} Return code of query
{2} Return code based on limit of Spufi

In the above case, if rows returned are less than limit,
then SQLCODE will be +0 for {1} and +100 for {2}.

If rows fetched are more but because of Spufi limit only
few rows are displayed and +0 will be returned for {1} and
{2}.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More DB2 Interview Questions

database DSNDB01 means a.db2 catalog b.db2 directory c.BSDS d.active logs answer with reason please

1 Answers  


Explain packages.

0 Answers  


What are the benefits of using the db2 database?

0 Answers  


Explain the EXPLAIN statement?

1 Answers  


What is the clustering index in the db2 database?

0 Answers  


What do you need to do before you do EXPLAIN?

1 Answers  


What r the comman abends in db2, jcl and cobol???????

0 Answers   Mphasis,


What is cobol db2?

0 Answers  


Q1. How will you use two different DB2 qualifiers in a single COBOL program? Suppose we have 2 tables EMP1 and EMP2 with same structure defined in two different DB2 qualifiers QUAL1.EMP1 and QUAL2.EMP2 now during first 15 days we want to use QUAL1.EMP1 and rest of the days QUAL2.EMP2  how will we do this.  We can create a single program and a single load for this program. 

2 Answers   RBS,


what is dynamic cursor?gives syntax for this?

1 Answers   TCS,


Is DECLARE TABLE in DCLGEN necessary? Why it used?

3 Answers  


What keyword does an SQL SELECT statement use for a string search?

2 Answers  


Categories