Hi,
I am trying to access DB2 tables from a Easytrieve program....but have not
been able to. Hope you guys can help me out !
Following is the SYSPRINT output of the program I tried to execute.
-------------------------------------------------------------------------------
------------------------------------
PARM SSID('DB2T') +
SQLID('SYSIBM')
FILE OUTRPT
W-NAME W 8 A
JOB INPUT SQL
SELECT NAME FROM SYSPLAN ORDER BY NAME +
*******B204 SQL - DB2 SUBSYSTEM "DB2T" DOES NOT EXIST
*******B204 SQL - CHANGING TO "PARTIAL" SQL SYNTAX CHECKING
INTO :W-NAME
-------------------------------------------------------------------------------
------------------------------------
According to the manual, it says that Easytrieve can do Automatic retrival and
it says that -
"In this read-only method, SQL must be coded on the JOB statement in
place of a file name. A SELECT statement must be coded directly after the
JOB statement to specify the columns to be retrieved and the host
variables to receive the data. Each time the JOB activity is iterated,
another row of SQL data is retrieved. This is a simple way to retrieve
SQL data into working storage or into an extract file for subsequent
output. "
Also, my execution step in the JCL has the DB2 loadlibs and the EZYT loadlibs
concatenated.....So, I am not sure what else I am missing here.
Any ideas ?
Thanks,
Madhu
I am trying to access DB2 tables from a Easytrieve program....but have not
been able to. Hope you guys can help me out !
Following is the SYSPRINT output of the program I tried to execute.
-------------------------------------------------------------------------------
------------------------------------
PARM SSID('DB2T') +
SQLID('SYSIBM')
FILE OUTRPT
W-NAME W 8 A
JOB INPUT SQL
SELECT NAME FROM SYSPLAN ORDER BY NAME +
*******B204 SQL - DB2 SUBSYSTEM "DB2T" DOES NOT EXIST
*******B204 SQL - CHANGING TO "PARTIAL" SQL SYNTAX CHECKING
INTO :W-NAME
-------------------------------------------------------------------------------
------------------------------------
According to the manual, it says that Easytrieve can do Automatic retrival and
it says that -
"In this read-only method, SQL must be coded on the JOB statement in
place of a file name. A SELECT statement must be coded directly after the
JOB statement to specify the columns to be retrieved and the host
variables to receive the data. Each time the JOB activity is iterated,
another row of SQL data is retrieved. This is a simple way to retrieve
SQL data into working storage or into an extract file for subsequent
output. "
Also, my execution step in the JCL has the DB2 loadlibs and the EZYT loadlibs
concatenated.....So, I am not sure what else I am missing here.
Any ideas ?
Thanks,
Madhu