View previous topic :: View next topic |
Author |
Message |
ANDY Beginner

Joined: 07 Feb 2004 Posts: 127 Topics: 67
|
Posted: Thu Feb 12, 2004 1:58 am Post subject: How to connect to DB2 on MVS? |
|
|
Hello:
As I konw, On Windows: we use ODBC drive to connect with DB2 or other database. On Java, we use JDBC to conect with database. I do not know how to connect to DB2 on MVS using Cobol? Is there has something like ODBC on mainframe environment ?
Thanks.
Andy |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Thu Feb 12, 2004 6:08 am Post subject: |
|
|
Andy,
Usually a typical COBOL-DB2 program will run using the TSO Terminal Monitor Program (TMP) which is IKJEFT01.The DSN command processor is the DB2 interface in here for cobol.
An IMS program can access DB2 when the external subsystem (DB2 in this case) is defined to the region. This can be probably found in the IMS.PROCLIB with a member name starting with the IMSID followed by the value of the SSM parameter for the message region.The plan name should be the same as the program name unless it is defined otherwise in the Resource Translation Table.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ANDY Beginner

Joined: 07 Feb 2004 Posts: 127 Topics: 67
|
Posted: Fri Feb 13, 2004 1:17 pm Post subject: |
|
|
Hi Kolusu:
thanks.
Andy _________________ cheers,
Andy |
|
Back to top |
|
 |
|
|