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 = -904

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
GauravKudesiya
Warnings : 1

New User


Joined: 11 Oct 2008
Posts: 74
Location: Chicago, IL

PostPosted: Mon Jun 23, 2014 8:38 pm    Post subject: SQLCODE = -904
Reply with quote

Hello All,

I am running a SQL through JCL.

I am getting SQLCODE = -904
Exact Error

Code:
RESULT OF SQL STATEMENT:
DSNT408I SQLCODE = -904, ERROR:  UNSUCCESSFUL EXECUTION CAUSED BY AN UNAVAILABLABLE RESOURCE. REASON 00C90085, TYPE OF
RESOURCE 00000230, AND RESOURCE NAME  4K
DSNT418I SQLSTATE   = 57011 SQLSTATE RETURN CODE
DSNT415I SQLERRP    = DSNXRSOR SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD    = -115  13172746  0  13231826  -959250432  14090279 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD    = X'FFFFFF8D'  X'00C9000A'  X'00000000'  X'00C9E6D2'  X'C6D30000'  X'00D70027' SQL DIAGNOSTIC
INFORMATION



The SQL is a complex SQL using 3 different tables


Code:
SELECT DISTINCT PROD.TABLEA.BNF_ID                                 
  FROM PROD.TABLEA , PROD.TABLEB ,                       
  PROD.TABLEC                                                           
WHERE     NOT EXISTS                                                         
              (SELECT 'X'                                                   
                 FROM PROD.TABLED                               
WHERE PROD.TABLED.BCO_BNF_ID = PROD.TABLEA.BNF_ID)     
    AND PROD.TABLEB.BPG_EXP_DT > CURRENT DATE                     
    AND PROD.TABLEA.BNF_BEF_CLT_ID = PROD.TABLEC.CLT_ID       
    AND (   PROD.TABLEC.CLT_MOR_DIS_PCG_IN <> 1                         
         OR PROD.TABLEC.CLT_PCS_DIS_PCG_IN <> 1                         
         OR PROD.TABLEC.CLT_POS_DIS_PCG_IN <> 1)                       
    AND     PROD.TABLEC.CLT_TSF_IN = 1                                 
  WITH UR;     


Thanks in Advance!!
Back to top
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Mon Jun 23, 2014 9:46 pm    Post subject:
Reply with quote

From Bing:
http://www-01.ibm.com/support/knowledgecenter/?lang=en#!/SSEPEK_9.0.0/com.ibm.db2z9.doc.codes/src/tpc/00c90085.dita
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1280
Location: Belgium

PostPosted: Tue Jun 24, 2014 1:12 pm    Post subject:
Reply with quote

a join condition between tableB and (tableA or tableC ) might also help
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 DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts SQLCODE-000000080N priya91 DB2 1 Mon Feb 01, 2016 4:35 pm
No new posts Need to understand SQLCODE = 12 rohanthengal DB2 3 Thu Nov 05, 2015 11:22 am
No new posts SQLCODE -922 in Batch-Cics program tr... kishpra CICS 2 Thu Sep 10, 2015 12:36 pm
No new posts SQLCODE -450 for stored procedure spoorni DB2 3 Fri Jan 16, 2015 2:45 am


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