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 > make table OR call stored procedure from client app

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-26-03, 15:14
bluebird bluebird is offline
Registered User
 
Join Date: Dec 2003
Posts: 7
make table OR call stored procedure from client app

I am developing front ends in MS Access 97 to build reporting tools for calculated metrics out of DB2 (OS/390) tables. I am trying to use ODBCDirect through SequeLink to either make intermediate tables or call procedures I have stored through an alternate front end (QMF). But I have had no success with either a SELECT INTO statement or a procedure call such as "{call ASFDG.HJKL}":

Error #-104
42000: [Intersolv][ODBC SequeLink Driver][DB2/MVS][42000]
SQLCODE=-104
ERROR: ILLEGAL SYMBOL "{": SOME SYMBOLS THAT MIGHT BE LEGAL ARE: :

Any clues as to syntax or even whether it will work to do this without linking through JDBC or while staying under the radar of the IS folks?

I am also posting this question in the Access forum. Thanks. Sorry I am dumb.
Reply With Quote
  #2 (permalink)  
Old 12-30-03, 13:45
bluebird bluebird is offline
Registered User
 
Join Date: Dec 2003
Posts: 7
Re: make table OR call stored procedure from client app

If anyone is curious I solved this problem by using the create view statement in my SQL, for example:

with qdf
.SQL = _
"CREATE VIEW habitat AS SELECT state_name FROM states WHERE bluebird_population > 0"
.Execute
end with

And then subsequently I can query out of this saved view, for example:

SELECT COUNT(state_name) FROM habitat

Really neat, eh?

Quote:
Originally posted by bluebird
I am developing front ends in MS Access 97 to build reporting tools for calculated metrics out of DB2 (OS/390) tables. I am trying to use ODBCDirect through SequeLink to either make intermediate tables or call procedures I have stored through an alternate front end (QMF). But I have had no success with either a SELECT INTO statement or a procedure call such as "{call ASFDG.HJKL}":

Error #-104
42000: [Intersolv][ODBC SequeLink Driver][DB2/MVS][42000]
SQLCODE=-104
ERROR: ILLEGAL SYMBOL "{": SOME SYMBOLS THAT MIGHT BE LEGAL ARE: :

Any clues as to syntax or even whether it will work to do this without linking through JDBC or while staying under the radar of the IS folks?

I am also posting this question in the Access forum. Thanks. Sorry I am dumb.
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