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

Can I use LOCK TABLE on a view?

1 Answers  


Which one allows duplicate values Union or Union All ?

3 Answers  


What is db2 purescale?

0 Answers  


Could you please let me no the query for below I have table name xyx under this there is column name called employee name which starts from 100th column ends 120th column,now i want to replace only column from 101 to 104 which contains ABCS to replace with PQRS for all records which comes beetween 101 to 104 ..how to write query for this..

1 Answers   HSBC,


what happend with out using Commit,when closing cursor and program?

5 Answers   CSC,






How to select the duplicate rows from a table?

4 Answers  


what is the name of the default db2 catalog database?

3 Answers   IBM,


What is dynamic SQL?

1 Answers   ADP,


What is a thread?

3 Answers  


My cobol program(not having any sql statements) is calling another cobol program ( having sql statements), what is needed for compilation and run in jcls .

3 Answers   Cap Gemini, RBS,


Why do we bind in db2?

0 Answers  


How to find schema of a table in db2?

0 Answers  


Categories