|
Lewis, DougDate' ;
Joel,
The example is run sql in Ops Nav. I did this to test the stored
procedure NewScafChg which calls program NewScaf3. Normally it is
called from one of our Java apps.
The stored procedure runs a program that creates parm 7 & 8, which
is a date and time stamp, and returns it to the calling Java
program. These are part of the key fields to the file that program
NewScaf3 populates. Then Crystal Reports queries the file using the
timestamp and one other field.
The UDTF runs the same program NewScaf3 but it is called from
Business Objects.
The Stored Procedure:
-- Generate SQL
-- Version: V6R1M0 080215
-- Generated on: 07/27/12 08:49:54
-- Relational Database: ERPSERV
-- Standards Option: DB2 for i
CREATE PROCEDURE ERSDS.NEWSCAFCHG (
INOUT PARMRCID CHAR(19) ,
INOUT PARMEXTRA1 CHAR(19) ,
INOUT PARMEXTRA2 CHAR(19) ,
INOUT PARMEXTRA3 CHAR(19) ,
INOUT PARMFROMDATE CHAR(10) ,
INOUT PARMTODATE CHAR(10) ,
INOUT PARMCYYMMDD CHAR(7) ,
INOUT PARMHHMMSSMMM CHAR(9) )
LANGUAGE RPGLE
SPECIFIC ERSDS.NEWSCAFCHG
NOT DETERMINISTIC
MODIFIES SQL DATA
CALLED ON NULL INPUT
EXTERNAL NAME 'ERSDS/NEWSCAF3'
PARAMETER STYLE GENERAL ;
COMMENT ON SPECIFIC PROCEDURE ERSDS.NEWSCAFCHG
IS 'Extract eRSDS Billing Scaffold Charges & Daily Rental & Cost To
Hope that helps explain it a little more.
Doug
As an Amazon Associate we earn from qualifying purchases.
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.