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 > MySQL > connecting MySQL to COBOL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-03, 08:20
arunchp arunchp is offline
Registered User
 
Join Date: Nov 2003
Location: India
Posts: 22
Question connecting MySQL to COBOL

I am novice to COBOL programming but having enough logical abilities.

I wanna connect MySQL database into COBOL.

I have already clears that no Embedded SQL supports in MySQL so i thing no way to connect COBOL thru it's embedded SQL cabapility.

i am so kind enough if any one gives some ideas related to this.

Thank you...
apa.
Reply With Quote
  #2 (permalink)  
Old 12-09-03, 07:05
arunchp arunchp is offline
Registered User
 
Join Date: Nov 2003
Location: India
Posts: 22
approach to establishing connection between COBOL and MySQL

I found that MySQL provides a set of C API to establish and manipulate connection with MySQL Databases.
REF: http://www.mysql.com/doc/en/C_API_fu..._overview.html

Also from COBOL we have the facility to interact with C through it's subroutine features. So we can create subroutines to the C API provided by MySQL.

I thought that there are some steps to be followed to create interface between MySQL and COBOL

- There should be some file (like .obj) to setup interface between COBOL and C.
- There should be some OS specific files (like .obj) provided by COBOL to initialize C run time.
- like wise we should have COBOL run time library
- OS supporting library file for COBOL.

I found that Library file given by MySQL for C API is 'mysqlclient.lib'.

Is any one approched in this way earlier than this please let me know what are all the additional requirements to establish connection between COBOL and MySQL.

thanks

apa.
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