IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SQLCODE -950 in PREPARE statement mystery


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Sat Apr 20, 2019 7:00 pm
Reply with quote

Hello,

Running a PL/I program PGM314 which uses dynamic SQL to select DB2 tables. ( DB2 V8 )

Now, I face a sqlcode -950 in the prepare statement. I know where to find explanation, but regarding the error messages, everything seems to be OK.

I spent 3 days on that.... making new program expunged from unnecessary code and keeping the core of the problem. A new program PGMZZZ works... I did a lot of new tests. PGM314 failed as similar programs worked
So I check the code of my program PGM314 , line by line, with the code of the PGMZZZ. Quite exactly the same. Rerun and failed again !!! gggrrhhhh.

My last action was successful but not explained.

I keep the whole code of my program PGM314, I only changed the name to PGM414, I recompiled and bingo it is working !!!!

Can someone explain this Easter mystery icon_rolleyes.gif

Thanks

Happy Easter to everyone Cheers

Pierre
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 708
Location: Whitby, ON, Canada

PostPosted: Mon Apr 22, 2019 11:34 pm
Reply with quote

Wild guess: any chance that garbage characters are winding up in the LOCATION portion of a three part table name? The book says that LOCATION must contain spaces or a valid location name.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Tue Apr 23, 2019 2:31 am
Reply with quote

Tanks Don for the interest and suggestion,

but I closely check the content and no garbage characters. No LOCATION involved here.
And I repeat : I just did a change like this : create a new member in PDS, copy the whole program PGM314 then Command : "C PGM314 PGM414 ALL"
That's all. Then recompile, bind and execute successfully ! icon_rolleyes.gif

Regards

Pierre
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts SQLCODE = -16002 when using XMLEXISTS DB2 1
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
This topic is locked: you cannot edit posts or make replies. Sort card help to prepare status report DFSORT/ICETOOL 13
No new posts DFDSS COPY using Filter REFDT statement JCL & VSAM 2
Search our Forums:

Back to Top