Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL

Status
Not open for further replies.

sirragu

IS-IT--Management
Jan 7, 2005
12
US
I am currently using Micro Focus Server Express 5.0 on AIX 5.3. I am looking for some sample code for connecting, reading, writing, etc to a MySQL database. New to working with SQL from COBOL. What directives, environment variables, copybooks ( ie SQLCA, SQLDA...). Any help would be greatly appreciated.

Thanks in advance!
 
Thers isn't a ESQL COBOL for mysql so I think SQLCA etc are out if the question.
I've never used mysql from COBOL but used MYSQL a fair bit. If there is an ODBC interface within the COBOL it shoud be straightforward but if not you might have to go the the CLI (Call Level Interface) level. I suggest you look at where you can download the chapters from Paul DuBois book on callinf from C and the C function referecne.
Hope this helps !
 
Couldn't you use the MySQL Connector/ODBC libraries to allow you to connect using ESQL? I've done that on Windows and it's worked fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top