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

What is the difference between group by and order by?

2 Answers   IBM, TCS,


run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...

0 Answers   IBM,


How to fetch the uncommited data from table ?

1 Answers   JPMorgan Chase,


could you give me an example how, where i code CHECKPOINT and restart...I need and example....thanks..

5 Answers  


What is check constraint. Explain with example.

0 Answers  


What is a Resource Control Table(RCT)? Describe its characteristics.

3 Answers  


can all users have the privilage to use the sql statement select * (dml)?

0 Answers   IBM,


what is the total syntax for fetch ? can any one please give me all the details of fetch ? thx

2 Answers   IBM,


What is the latest version of ibm db2?

0 Answers  


how can we find nth max salary from A table

5 Answers   IBM,


How can you count the number of rows from a table tab?

0 Answers  


What are bind parameters in db2?

0 Answers  


Categories