Export tabels from SQL Server to iSeries

5 pts.
Tags:
Export
iSeries Commands
SQL
I have a need to export a table on an SQL server to a file on the iSeries. I would also like this to be automated so that when the table is populated, the information is automatically exported to the file on the iSeries. I have tried using DTS/Enterprise Manager, but to no avail. Any help would be greatly appreciated.

Answer Wiki

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

You can use FTP

First
CRTPF FILE(YOURLIB/FTPIN) RCDLEN(80)
Use DBU or UPDDTA put in the FTP commands to signon to the server and retrieve the file

Set up a CLP that does
CRTPF FILE(QTEMP/FTPIN) RCDLEN(80)

OVRDBF FILE(INPUT) TOFILE(YOURLIB/FTPIN)
OVRDBF FILE(OUTPUT) TOFILE(QTEMP/FTPOUT)

FTP (HOSTNAME)

Now you will have your flle and you can do whatever you want with it.

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