Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Rdb > SCRATCH tables ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 175 of 191
Post > Topic >>

SCRATCH tables in imbedded SQL (VMS)

by "filip.de.block@[EMAIL PROTECTED] " <filip.de.block@[EMAIL PROTECTED] > Jan 19, 2007 at 01:54 AM

Hi,

While trying to convert a reasonably big VMS application (mainly COBOL)
from SYBASE to RDB, I do encounter problems dealing with SYBASE
hash-tables (aka #tables).

Styding the doc for RDB suggest using "DECLARE LOCAL TEM****ARY TABLE
MODULE.tablename". This works well in straightforward SQL (tables are
realy scratch-mode, no two processes can see each other tables,
automatic drop after disconnect, etc.).

But alas, as the doc says, it is not usuable in precompiled programs
(Cobol). I tried using a CONTEXT file ( $SQLPRE blablabla.sco
context_file /whatever), and this basically returns :

        declare local tem****ary TABLE module.SUPP_SERV_STATUS
                      1
%SQL-F-NO_DMLPLAN, (1) You can only use DECLARE statements in a context
file.
        declare local tem****ary TABLE module.SUPP_SERV_STATUS
                                             2
%SQL-E-INV_TBL_DCL, (2) Invalid use of declared local tem****ary table
SUPP_SERV_STATUS

(declare statement comes the from context files, not from the .SCO)

Although the message NO_DMLPLAN is slightly confusing (other DECLAREs
are accepted), this is really the same error I get when trying to put
the DECLARE inside the .SCO

Using CREATE LOCAL TEM****ARY TABLE ... from inside the .SCO is not good
enough, because two processes can see each other (tem****ary) tables,
and I already experienced some nasty locking when two temp tables are
about to be created/used by separated processes.

Any takers ?

advTHANKSance,
f.
 




 4 Posts in Topic:
SCRATCH tables in imbedded SQL (VMS)
"filip.de.block@[EMA  2007-01-19 01:54:08 
Re: SCRATCH tables in imbedded SQL (VMS)
"Richard Maher"  2007-01-20 10:18:31 
Re: SCRATCH tables in imbedded SQL (VMS)
"Richard Maher"  2007-01-20 10:31:16 
Re: SCRATCH tables in imbedded SQL (VMS)
"filip.de.block@[EMA  2007-01-21 22:42:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 12:43:41 CDT 2008.