×
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.
To call an iseries program or serviceprogram from .net, i wrap the call inside a storedprocedure, and then use that storedprocedure from my .net application.
Works like a charm, except, i can't figure out how to call a serviceprogram that has a return value.
something like this:
d DayOfWeek PR 1 0
d InputDate D DatFmt(*iso)
For any given date, it returns the day of week as a number;
I thought about wrapping it in a function, but i couldn't make that work.
I could of course, wrap such a function inside another storedprocedure, and add the returnvalue as an extra parameter, but i was wandering if somebody knew
howto do this.
I find it a bit strange that it is possible to call a subprocedure inside a serviceprogram directly, but that you cannot get at the returnvalue.
Perhaps there is some way to define this in the storedprocedure, but there is so little documentation about this.
I'm on a V5R3 machine, and i use IBM.Data.DB2.iSeries assembly.
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.