Quantcast
Channel: Enterprise Developer Team Edition Support - Recent Threads
Viewing all articles
Browse latest Browse all 75

PROCOB autoconnect Oracle database

$
0
0

Hi

In my cobol program instead of specifying the direct db connect statement like  EXEC SQL CONNECT :USERNAME END-EXEC

Can we have some directive like INIT which can execute SQL statement directly and load the connection automatically without explicitly specifying the in cobol program

This works fine when I trigger the job using JCL with Oracle XA connection with IKJEFT01 program.

But if I compile and run using command prompt like cob -iv test.cbl

and run with cobrun command as cobrun test.int then it fails and gives error oracle not logon (error code ORA 1012)

I tested with directive DBMAN=ODBC , INIT and DB it worked and auto connected.

I wanted to know if we can use same with procob directives to auto connect.

please advise

 

 


Viewing all articles
Browse latest Browse all 75

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>