Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
I'm issuing the following using JT400 3.0 and v5r1 of OS/400. It creates a
callable statement passing 2 parms.
import com.ibm.as400.access.*;
import java.math.*;
import java.sql.*;
import java.util.*;
import java.lang.*;
import java.io.*;
public class RpgCall02 {
public static void main(java.lang.String[] args) {
try {
Class.forName("com.ibm.as400.access.AS400JDBCDriver");
dsp("Class loaded");
java.sql.DriverManager.registerDriver (new
com.ibm.as400.access.AS400JDBCDriver ());
dsp("Driver registered");
Properties prop = new Properties ();
prop.put("user", "user");
prop.put("password", "password");
AS400JDBCConnection c = (AS400JDBCConnection)
DriverManager.getConnection("jdbc:as400://spec00/;date
format=iso;naming=sql", prop);
AS400JDBCCallableStatement cs = (AS400JDBCCallableStatement)
c.prepareCall("CALL zzbm1.javacall2(?, ?)");
cs.setString (1, "BJM");
cs.setString (2, "0000091834");
cs.execute();
cs.close();
c.close();
}
catch(Exception ex) {
ex.printStackTrace();
}
System.exit(0);
}
}
When I run this I get an [sql0204] JavaCall2 in zzbm1 type N* not found.
If I take out the parameters on both the Java pgm and the AS400 CL pgm it works
fine.
Any ideas.
Thanks Barry
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.