MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

-904 SQL Code while executing the pgm

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
MFdigger
Beginner


Joined: 09 Sep 2005
Posts: 124
Topics: 52
Location: Chicago

PostPosted: Sun Aug 24, 2008 8:41 am    Post subject: -904 SQL Code while executing the pgm Reply with quote

Hi All,

I'm facing with -904 SQLCODE when trying to execute my program. When I debugged the program, its a simple SELECT query which causing the error.

EXEC SQL
SELECT
I_DKM
INTO
:DKM-MON-T
FROM
A.KVKDKMT
WHERE
I_DKM_LIST = 'ABCD'
END-EXEC

When I run the query in QMF its retreving the results with out any issues.

The error message showing up as:

DSNT408I SQLCODE = -904, ERROR: UNSUCCESSFUL EXECUTION CAUSED BY AN UNAVAILABLE RESOURCE. REASON 00C900AE, TYPE OF RESOURCE 00000201, AND RESOURE NAME K211 .KVKDKMT1

DSNT418I SQLSTATE = 57011 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXRRC SQL PROCEDURE DETECTING ERROR

Could some one please guide on how I can proceed on this?

Thank you
Rolling Eyes
_________________
Tx
Digger
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Mon Aug 25, 2008 12:35 am    Post subject: Reply with quote

K211 .KVKDKMT1T is not available for you. It is not in the databank, or maybe you misspelled, or maybe you are using the wrong databank system, or .....
Back to top
View user's profile Send private message Visit poster's website
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Mon Aug 25, 2008 4:26 am    Post subject: Reply with quote

is there any other job wich updates (update,delete,insert) at the time your program is running (or even your own program) without a COMMIT control?
Back to top
View user's profile Send private message
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Mon Aug 25, 2008 4:28 am    Post subject: Reply with quote

ooops, I think that the COMMIT issue is for -911.

Wink
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Mon Aug 25, 2008 8:07 am    Post subject: Reply with quote

So when you looked up the error code in the manual and saw this, is there something specific that you didn't understand?


[code:1:79fb6c23b5]00C900AE
Explanation: An attempt was made to allocate or access an index that is in the rebuild pending status.

System Action: The use of the object is not allowed.
User Response: Determine when the resource is available for use and rerun the job.

Operator Response: Determine whether the REBUILD utility should be run to complete recovering the object.

Problem Determination: The requested operation is not performed because the index may be in an inconsistent state. An SQLCODE -904 and/or message DSNT501I and/or message DSNI005I is issued. For more information, refer to Part 2,
Back to top
View user's profile Send private message
MFdigger
Beginner


Joined: 09 Sep 2005
Posts: 124
Topics: 52
Location: Chicago

PostPosted: Mon Aug 25, 2008 3:48 pm    Post subject: Reply with quote

Hi All

Thank you for your quick resonponse. I came to know that there were some jobs which were doing the RUNSTATS for the table, at the same time I was trying to test my program.

I ran my job a little later and it worked for me.

Thank you once again.

Smile
_________________
Tx
Digger
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group