Data Integration

0 pts.
Tags:
DB2 Universal Database
SQL Server
We are in the beginning stages of integrating data between a PC based inventory system and the iSeries. Specifically we will be downloading and uploading data between the two systems automatically. We have had success using ODBC. We also need to be able to call an RPG program from the PC based system. I'm sure there are many solutions. 1) Is ODBC still a standard way of integrating/connecting? If not, what is the best way? 2) Can we call the iSeries RPG program from inside MS SQL server? and, 3) Do we have to use Java? Thanks for any input!
ASKED: November 30, 2005  2:39 PM
UPDATED: November 30, 2005  3:03 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can turn the RPG program into a stored procedure:

Here’s a typical SQL statement to do the link:

CREATE PROCEDURE &CURRENTLIB/pr_utlfiledownloadACH(
IN v_fileDir VARCHAR(200),
IN v_fileName VARCHAR(50))
LANGUAGE C
NOT DETERMINISTIC
MODIFIES SQL DATA
EXTERNAL NAME &CURRENTLIB/S_PUFDLACH
PARAMETER STYLE GENERAL WITH NULLS;

You will probably need less code than shown above.

When you call the procedure, use the SQL CALL statement. In the above example, I’d use:

CALL pr_utlfiledownloadACH(‘first arg’,'second arg’);


Sheldon Linker
Linker Systems, Inc.
800-315-1174
www.linkersystems.com
sol@linker.com
+1-949-552-1904

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following