× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have gotten an sql stored procedure on the iseries to be
successfully called in vb.net. My experience is limited but try to
learn as I go. I believe a stored procedure that is made with embeded
sql and rpgle may work differently than a stored procedure made solely
with sql, just fyi. Here is some code, Im using the iseries for .net
data provider. Have you found the MS report writer to be better than
crystal?

Dim sql As String = "call portal.sp_attydoe2(@doe)"
Dim cmd As New iDB2Command(SQL, cn)
cmd.Parameters.Add("@doe", iDB2DbType.iDB2Numeric, 8)
cmd.Parameters("@doe").Scale = 0
cmd.Parameters("@doe").Value = doe

'create a data reader object, fill it by executing the command
Dim dr As iDB2DataReader
Try
dr = cmd.ExecuteReader()
Catch ex As iDB2Exception
HandleError("an error occurred on cmd.ExecuteReader()", ex)
Exit Sub
End Try

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.