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



Hi! Scott,

What I would like my application to do is convert my dtabase file to
stream file, then by socket programs (or through ftp as you are saying)
transfer it to UNIX. Vice versa is I want my application to connect to
UNIX, read a file, store it in stream file in AS/400 then convert it
into database file. 
Do I have to write socket programs or can FTP be used in the programs?

I also would like to connect to UNIX through my application program
from AS/400 and execute UNIX commands. How can this be achieved?

I shall be very much obliged if you could give me some useful
suggestions.

Thanks and regards

Srinivas.

************************

--- Scott Klement <infosys@klements.com> wrote:
> Srinivas,
> 
>       Why don't you want to use FTP?   What, specifically, will FTP
> not do correctly in your application?
> 
> The programs that I've written are all very proprietary.  They work
> only with my company's in-house developed software system.  They
> won't do you any good.
> 
> If you give me specifics I can try to point you in the right
> direction
> but, so far, I don't truly understand what you're trying to do.
> The things you've said could mean many things, and I don't even know
> if I'm pointing you in the right direction!
> 
> Scott Klement
> Information Systems Manager
> Klement's Sausage Co, Inc.
> 
> 
> "G.R.Srinivas" <srinivasgr@yahoo.com> wrote:
> >
> > Hi Scott,
> >
> > Thanks a lot. That was a great info. I don't want to transfer
> > files/data through FTP, That's easy I know. I would like to
> transfer
> > data through my programs to and from UNIX.
> > If you could spare me the programs you've written, I shall be very
> >  much
> > obliged.
> >
> > Thanks and regards,
> > Srinivas
> >
> > --- Scott Klement <infosys@klements.com> wrote:
> > > 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
> RP
> > > program, by simply writing out to a source PF.
> > >
> > > If you need something a bit more complicated, like transforming
> th
> > > 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
> Un
> > > 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
> > > 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.
> 

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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