Maybe you could donate $50 to your favorite cause (wMUsers!).
Use com.ibm.vse.jdbc.VsamJdbcDriver on VSE. You can get the driver
on APAR PQ71095 at
[url=“Enterprise Business Servers | IBM”]Enterprise Business Servers | IBM
I also found a good quote at
[url=“http://www-3.ibm.com/fcgi-bin/common/ssi/ssialias?infotype=an&subtype=ca&htmlfid=897/ENUS201-325&appname=demonstration”]http://www-3.ibm.com/fcgi-bin/common/ssi/ssialias?infotype=an&subtype=ca&htmlfid=897/ENUS201-325&appname=demonstration[/url]
:
The VSE Java Bean class library now includes a virtual storage access method (VSAM) Java database connectivity (JDBC) driver with a limited subset of SQL constructs. Java programmers can create applets, servlets, and applications that access VSAM data using standard SQL queries.
Also this:
Using DB2 Information Integrator Classic Federation applications can issue SQL SELECT, INSERT, UPDATE, and DELETE from ODBC, JDBC or a Call Level Interface (CLI) to access DB2 UDB, IMS, and VSAM mainframe data. Three optional features are available to provide these services for Software AG Adabas as well as Computer Associates CA-Datacom and CA-IDMS data.
Here is a sample java program.
/***********************************************************************
/
/ VSE/ESA Connector Framework - Example Code
/
/****************************************************************
/
/
/
/ MODULE NAME : MpmJdbc.java
/
/
/
/ DESCRIPTIVE NAME : Shows how to issue SQL requests against VSAM data.
/
/
/
/****************************************************************
*******/
package com.ibm.vse.samples;
import java.lang.;
import java.net.;
import java.io.;
import java.util.;
import java.sql.;
import com.ibm.vse.jdbc.;
public class MpmJdbc
{
// Default port number.
static String vsePort = “2893”;
// Names of the Clusters and Maps.
static String vsamCatalog = “DRV.CAT1”;
static String mpmcluster = “DRV.HISTORY”;
static String mpmMapName = “DRVHIST”;
public static void main(String argv) throws IOException
{
int num;
String drvhistkey, drvdlno, drvcitnbr,drvrcdtype, drvcourtstate;
String vseHostName, userID, password;
byte inputArray;
java.sql.Driver jdbcDriver = null;
java.sql.Connection jdbcCon = null;
java.sql.Statement stmt = null;
java.sql.PreparedStatement pstmt = null;
<BR