View previous topic :: View next topic |
Author |
Message |
suggala Beginner
Joined: 07 Oct 2003 Posts: 3 Topics: 2
|
Posted: Tue Oct 14, 2003 3:20 pm Post subject: Question on Dynamic SQL in a program |
|
|
Hi,
I am able to create a working storage variable as follows
select count(*) into :ws-count
from table.name
where var1 = 'x'
and var2 = 2
all this is stored in varchar working storage variable totcnt
I am moving length too.
When I issue a prepare statement I am getting error -312.
I am guessing it may be due to existance of host variable
ws-count.
Any help in this regard to overcome this. thanx
Raghu _________________ Raghu |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|