If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Using DB2 command line

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-04, 19:22
rkalani rkalani is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
Using DB2 command line

Hi,

I was running db2 commands by using the clp options

for eg :'db2 -tf xyz.clp'

and in the .clp file i had a call to a procedure. Now in db2 v8 the same thing is erroring out saying

SQL0084N An EXECUTE IMMEDIATE statement contains a SELECT or VALUES
statement. SQLSTATE=42612

Could you please tell what am i doing wrong here?

Thanks,
Rajesh
Reply With Quote
  #2 (permalink)  
Old 02-20-04, 19:24
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Using DB2 command line

Can you post the xyz.clp file please ?

Cheers
Sathyaram

Quote:
Originally posted by rkalani
Hi,

I was running db2 commands by using the clp options

for eg :'db2 -tf xyz.clp'

and in the .clp file i had a call to a procedure. Now in db2 v8 the same thing is erroring out saying

SQL0084N An EXECUTE IMMEDIATE statement contains a SELECT or VALUES
statement. SQLSTATE=42612

Could you please tell what am i doing wrong here?

Thanks,
Rajesh
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 02-21-04, 15:45
rkalani rkalani is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
connect to {DB} user {userid} using {password};
call SYSPROC.DSNWZP(?);
terminate;
Reply With Quote
  #4 (permalink)  
Old 02-21-04, 16:09
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I assume you are trying to use DB2 Connect V8 to connect to DB2 V7(or lower) on Z/OS ?

Have you checked the compatability of this version of Connect V8 to the database server ?


You can try using CLI Trace to know what request is being sent to the server


Cheers
Sathyaram



Quote:
Originally posted by rkalani
connect to {DB} user {userid} using {password};
call SYSPROC.DSNWZP(?);
terminate;
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 02-23-04, 14:22
rkalani rkalani is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
Sathyaram,

I checked and indeed that is the problem. Thanks for the useful comment.

Could you tell me what rang the bell that you said that I might be using the v8 clinet to point to a v7 server?

Thanks,
Rajesh
Reply With Quote
  #6 (permalink)  
Old 02-23-04, 16:10
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
V8 for zOS is not GA yet ...

Cheers
sathyaram

Quote:
Could you tell me what rang the bell that you said that I might be using the v8 clinet to point to a v7 server?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On