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 

DB2: Sequence Number in Plan

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


Joined: 25 Apr 2004
Posts: 7
Topics: 4

PostPosted: Wed May 12, 2004 1:24 am    Post subject: DB2: Sequence Number in Plan Reply with quote

Hi,

We are using dump master. I got an abend message as follows:

The last SQL statement executed was an EXEC SQL SELECT , precompiler
sequence number 7435 for plan NCBBTCOS .


I want to know the respective SQL statement for 7435. Can I get it by querying any catalog tables?


Regards,
Sara..
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 315
Topics: 49
Location: Germany

PostPosted: Wed May 12, 2004 2:42 am    Post subject: Reply with quote

Hi Sara,


no idea about "DUMP MASTER", but in SYSIBM.SYSSTMT you find the precompiled SQL statements with an statement number. May be, this is the number then "DUMP MASTER" displays.

Hope this helps,
bauer
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed May 12, 2004 5:15 am    Post subject: Reply with quote

sara,

Can't you just re-compile the program and check the pre-complier listing for the statement? The catalog table which contains all the information regarding the sql statements in a program is SYSIBM.SYSSTMT table.

Try this SQL

Code:

 SELECT TEXT
   FROM SYSIBM.SYSSTMT
  WHERE PLNAME = 'NCBBTCOS'
    AND SEQNO  = 7435
    ;


Check this link for a detailed explanation on SYSIBM.SYSSTMT table


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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