|
Actually what I did, was not a great technical solution, but it solved the problem at hand... I have a list of e-mail address on file, that correspond with user names...
and when a person selects a spool file or data file they want... i default in thier e-mail address, so they can verify it... and then I create an ifs file from the spool file or database file -> .csv and send them as e-mail attachements... not perfect... but it provided functionality to all of our pc work stations... plus as an e-mail, it keeps them from losing their reports :-)
have a nice weekend....
-----Original Message-----
From: Chris Rehm [SMTP:javadisciple@earthlink.net]
Sent: Friday, June 08, 2001 2:36 PM
To: MIDRANGE-L@midrange.com
Subject: Re: API to retrieve TCPIP address of the client?
Well, if the intent is to retrieve a file from the AS/400 based on a
selection made via file, there might be a couple of other considerations.
What if the client doesn't have an IP address? I think you'd want to
check and see if you are being run by a dumb tube before you run your
app. Then you need to push your file, which will require the workstation
to be ready to receive it by running some hosting app (ftp, CA, etc.).
I would think it would be a lot simpler to write a pc based app (say, in
Java) that fetches the file list, and then issues an ftp request from
that app. But that's all guesswork from someone who just doesn't know
the real problem.
One reason I like the idea of using Java for such a task is that the
same app that makes the SQL request to fetch the list of files can also
thread the ftp request and save the file to the local machine, so any
machine which can run the app, is qualified to run it. No need to worry
about requesting IP addresses or if the PC making the request can
receive a pushed file.
Hatzenbeler, Tim wrote:
> i'm sure you are aware of this, but just incase... you'll need an ftp
> server running on your pc's so it can accept the file your as/400 will
> be sending it...
>
> if anybody else has a better way? I would love to know about it....
> tim
>
> -----Original Message-----
> From: ron hawkins [SMTP:hwarangron@home.com]
> Does anybody know how to retrieve the tcpip address of a pc
> attached to the
> 400? I need to do it programatically - that is the user selects
> a record
> from a subfile and the program will FTP the file (represented by
> the record
> in the subfile) down to the PC.
>
--
Chris Rehm
javadisciple@earthlink.net
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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 copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.