Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SQLCODE=100 "no data" was found. <-- True or Fa

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Tue Apr 28, 2009 5:06 pm    Post subject: SQLCODE=100 "no data" was found. <-- True or Fa
Reply with quote

Hi,

In spufi, i have executed the following query and got the corresponding output along with the SQLCODE saying 100. And for commit SQLCODE is 0. What am i missing here ?
Iam using DB2 V8.1.
Code:

SELECT * FROM SHANDB.EMPLOYEE WHERE EMPNO LIKE '%60';                           
---------+---------+---------+---------+---------+---------+---------+---------+
EMPNO   FIRSTNME      MIDINIT  LASTNAME         WORKDEPT  PHONENO  HIREDATE    J
---------+---------+---------+---------+---------+---------+---------+---------+
000060  IRVING        F        STERN            D11       6423     1973-09-14  M
000160  ELIZABETH     R        PIANKA           D11       3782     1977-10-11  D
000260  SYBIL         V        JOHNSON          D21       8953     1975-09-11  C
DSNE610I NUMBER OF ROWS DISPLAYED IS 3                                         
DSNE616I STATEMENT EXECUTION WAS SUCCESSFUL, SQLCODE IS 100                     
---------+---------+---------+---------+---------+---------+---------+---------+
---------+---------+---------+---------+---------+---------+---------+---------+
DSNE617I COMMIT PERFORMED, SQLCODE IS 0                                         
DSNE616I STATEMENT EXECUTION WAS SUCCESSFUL, SQLCODE IS 0                       
---------+---------+---------+---------+---------+---------+---------+---------+

What did DB2 search & what it didn't find ?

I hope SQLCODE=100 for no data found. Still ?

Thank You,
Sushanth
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Apr 28, 2009 6:07 pm    Post subject:
Reply with quote

When a SELECT statement is executed using SPUFI, this SQLCODE indicates normal completion.

Get first row, 000060, rc=0,
get next row, 000120, rc=0,
get next row, 000360, rc=0,
get next row, none found, rc=100.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Tue Apr 28, 2009 6:12 pm    Post subject:
Reply with quote

Thank You, CICS guy.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us