To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Miscellaneous > General Database Discussions

General Database Discussions Discuss any database topic not covered in any other forum on this site

Reply Post New Thread
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-19-2002, 03:02 PM
Eltsha Eltsha is offline
Junior Member
 
Join Date: Oct 2002
Posts: 1
Question Dynamic ESQL in Cobol program

I am trying to set the default version for a thread in a cobol program running on a Unisys 2200.

The default version will be decided at runtime by the use of a parameter card and passed to a cobol variable.

The program uses static ESQL for all calls to the database. If i hardcode the version name to use into the program it uses the correct version, however as soon as i try to use dynamic ESQL the default version is ignored.

The code i have used is

EXEC SQL
EXECUTE IMMEDIATE :RDMS-DEFAULT-VERSION
END-EXEC

where rdms-default-version is a string made up to hold 'USE DEFAULT VERSION TUESDAY'

Any help to set the default version at run time would be appreciated.
Reply With Quote
Reply Post New Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:02 AM.


DatabaseJournal Recent Articles


 » Grouping with SQL Server 2008

 » Conducting Service Broker Conversation Usi...

 » Applying data warehousing principles to ev...

 » Oracle New Year's resolutions, part 1: Adv...

 » Hands on: Understanding SQL queries

Search Database Journal:
 





Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.