I am working on Microfocus COBOL code on UNIX box and trying to connect to Postgres database using a system DSN which is already being created and for connecting to that Database I am executing below SQL Query in our code:-
EXEC SQL CONNECT TO ‘SYSTEM_DSN’ USER ‘username.password’ END-EXEC.
However I am getting following error in the response when I am submitting a JCL for the Microfocus COBOL code:-
JCLCM0188I J0003556 BE24010R JOB STARTED 01:02:56
CASKC0027E Error executing service 'PGM#AR641010' Load error : file 'sqlastrt' error code: 173, pc=F97, call=1, seg=0 173 Called program file not found in drive/directory 01:02:57
JCLCM0192S J0003556 BE24010R STEP ABENDED STEP001 - COND CODE RTS0173 01:02:57
JCLCM0181S J0003556 BE24010R JOB ABENDED - COND CODE RTS0173 01:02:57
ODBC Driver DSN created with following details in /etc/odbc.ini :-
[DTF_Postgres_DSN]
Driver=/usr/edb/connectors/odbc/edb-odbc.so