× 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.


  • Subject: Re: Connecting UNIX through AS/400
  • From: "Scott Klement" <infosys@xxxxxxxxxxxx>
  • Date: 23 Jun 1999 17:58:07 -0500

Srinivas,

If you just need to "TRANSFER" a file, and not do anything else, like
data conversions or calculations on the data, then a simple "batch"
FTP will do the trick.

If you want to, you can dynamically build a file that contains the
user, password, files to transfer, and other FTP commands in an RPG
program, by simply writing out to a source PF.

If you need something a bit more complicated, like transforming the
data during the transfer, or including only certain records, or
showing a progress graph on the terminal screen, or whatever, then
I'd suggest doing calls to the socket API.

Depending on what exactly you're doing you may need to write programs
on both ends of the conversation (both on the AS/400 and on the Unix
system)

I've written a few sockets programs in RPG IV that are designed to
talk to our Unix system, and also have written several on the unix
system (in C) that talk to the AS/400.

I've also done similar things in Windows, both from Windows to AS/400
and Windows to Unix.

But REALLY, I'd try to do it the "easy" way first...   you'll save
yourself a lot of time, and not have to reinvent the wheel.  Look at
batch FTP!

Scott Klement
Information Systems Manager
Klement's Sausage Co, Inc.


"G.R.Srinivas" <srinivasgr@yahoo.com> wrote:
>
> Hi All,
>
> Kindly suggest how to connect to UNIX system through RPG program,
> transfer files to and from UNIX, execute UNIX commands/files on UNIX
>
> Srinivas.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.