How to connect a COBOL program to an Oracle database?

How to connect a COBOL program to an Oracle database?

Content Index :

How to connect a COBOL program to an Oracle database?
Tag : database , By : user165781
Date : November 24 2020, 03:41 PM

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

Dynamically calling a NODLL cobol program from a DLL cobol program on z/OS

Tag : development , By : arcadian
Date : March 29 2020, 07:55 AM
may help you . There are a number of ways to do what you want.
If, by dynamically call, you mean call via a data definition variable, I don't think you can do this with the linker/binder since the binder needs to know the target functions at bind time.

Program to connect Oracle Database using DataSource interface

Tag : java , By : Pip
Date : March 29 2020, 07:55 AM
hope this fix your issue I want to connect to Oracle database using DataSource interface not using DriverManager in java. I don't have an idea about this. Please provide me a sample program to do so. , When you want to use a DataSource here is the way to go:
// Setup the datasource
DataSource ds = new OracleDataSource();// There is other DataSource offered by Oracle , check the javadoc for more information

// Get a JDBC connection
Connection c = ds.getConnection();

Call Cobol or C functions in Cobol program called by C# program

Tag : chash , By : Jorge Palacio
Date : March 29 2020, 07:55 AM
hop of those help? Note: This is a guess as I did not tested it, but for most COBOL implementations there is a a runtime library (which should be the target for dlopen / LoadLibrary) which provides functions to use it.
A quick search in the Micro Focus documentation showed C Functions for Calling COBOL, you likely want to use cobinit(), cobcall() and cobtidy().
System.Environment.SetEnvironmentVariable("COBPATH", "X:\path;Y:\other-path");
#include "stdafx.h"
#include "stdio.h"
#include "windows.h"
#include "cobtypes.h"

typedef int(__stdcall *f_cobinit)();
typedef cobrtncode_t(__stdcall *f_cobcall)(const cobchar_t *callname, int argcnt, cobchar_t **argvec);

int main()
    HINSTANCE dllCbl = NULL;

    f_cobinit cobInit = NULL;
    f_cobcall cobCall = NULL;

    int retCode;

    printf("load COBOL runtime : ");
    HINSTANCE dllCbl = LoadLibrary("cblrtsm.dll");
    if (!dllCbl) {
        retCode = (int)GetLastError();
        printf("failure: %d\n", retCode);
        return retCode;

    printf("lookup COBOL functions : ");
    cobInit = (f_cobinit)GetProcAddress(dllCbl, "cobinit");
    cobCall = (f_cobcall)GetProcAddress(dllCbl, "cobcall");
    printf("init: %p, call: %p - ", (void *)cobInit, (void *)cobCall);
    if (!cobInit || !cobCall) {
        retCode = (int)GetLastError();
        printf("failure: %d\n", retCode);
        return retCode;

    printf("cobinit : ");
    retCode = cobInit();
    if (retCode) {
        printf("failure: %d\n", retCode);
        return retCode;

    printf("preload CobolDlls : ");
    retCode = cobCall((cobchar_t*)"CobolDlls", 0, NULL);

    //printf("preload CobolDlls2 : ");
    //retCode = cobCall((cobchar_t*)"CobolDlls2", 0, NULL);

    printf("do actual CALL "P2" : ");
    retCode = cobCall((cobchar_t*)"P2", 0, NULL);
    printf("returned with: %d\n", retCode);


Error when trying to connect to Oracle 10g database from C# program employing minimal set-up configuration

Tag : chash , By : DaveF
Date : March 29 2020, 07:55 AM

Connect to Quick Books Database with Cobol using ODBC and SQL

Tag : database , By : user187301
Date : March 29 2020, 07:55 AM
Related Posts Related QUESTIONS :
  • How to install Aerospike on Mac?
  • How would be data stored at database in case of social networking site?
  • Is there any NoSQL data store that is ACID compliant?
  • Why use NoSQL over Materialized Views?
  • Cannot deploy database from TFS
  • Storing data when using Greasemonkey
  • Very long strings as primary keys in a database for caching
  • Android SQLite database locale, locking, and version
  • setSelection on Spinner based on rowId
  • If change in a directory then do some action in linux
  • Exporting database on oracle
  • Auto Reconnect of Database Connection
  • How to use the distinct on databases DB4O
  • Which DB (SQL) is better supported in Erlang?
  • How to bring coordination between file system and database?
  • Good DB Migrations for CakePHP?
  • What is the standard or best way to deal with database branching with Mercurial or Git branches?
  • Anyone using NoSQL databases for medical record storage?
  • merging two duplicate contacts/ColdFusion
  • What is the best database for my needs?
  • How to use Data aware controls "correctly"?
  • mysql query to get unique value from one column
  • How to do database schema migrations in Android?
  • Compressing large text data before storing into db?
  • Ideas on Populating the Fact Table in a Data Mart
  • Capitalization of Person names in programming
  • Printing ERD from SchemaSpy output
  • Changing IDs and updating tables
  • How do you paginate results from a dynamic search in Django?
  • Version of SQLite used in Android?
  • MongoDB: multiple indexex
  • dynamic action on a table tDBOutput component
  • Merge 2 database in wordpress
  • possible to update a property after new model is created in sailsjs?
  • How to store translations in nosql DB with minimal duplication?
  • Linked Oracle View not refreshing in MS Access Database
  • How to import my mongo db from my local to a remote linux server
  • Counting the number of times a specific database table entry is queried?
  • Can you Package a Database Server & Client in a Native Application?
  • Records that have not been accessed by a different table
  • How to change the field datetime without time in database H2
  • Cannot create database with odbc connection
  • Unable to insert data to database using textinput value
  • Firestore DB in Native mode document write limit
  • Document DB SDK with ORDER BY caused ServiceUnvailableException
  • How to make DynamoDB deletes data every hour since the data is created?
  • Accessing Users File users.xml in Clickhouse Docker Container?
  • MS Access - hide tables when printing a form
  • AWS DynamoDB - How to design a table/index that can efficiently retrieve large numbers of items with a specific value/st
  • My Data is not being Saved in my database correctly
  • Best way to use database connection for every get/post request in .net core web api service
  • ERROR 266: Inconsistent Datatype: TIMESTAMP type is incompatible with INT type SAP HANA
  • Does anyone know about sample structure table for save parameter and procedure name (Oracle)?
  • How should I design my relational tables?
  • Subform totals value to textbox in form returns error
  • Search in redis for keys not matching given pattern
  • Neo4j Create new label based on other labels with certain properties
  • Where date is bigger than in Rails 4 and Postgres
  • Improve seq scan filter cost on column being NOT NULL
  • Understanding an ER Diagram
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com