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

To send a spool file by email you would normally first copy the spool file
to a database file using the CPYSPLF command and then transfer the database
file to the IFS. If you don't have any 3rd party email software installed
on your machine you can use the SNDDST command to email the file via SMTP
from the IFS. I have a document showing how to do this at
http://www.astradyne-uk.com/docs/14-02001.pdf which describes how to setup
SMTP and send documents, etc.

Alternatively, you can use the MMAIL utility (available free of charge) from
http://www.easy400.net which has a specific command for emailing spool files
and will (optionally) convert the spool file to PDF format.

To send the file via FTP, use CPYSPLF to copy it to a fixed record length
database file and then use FTP to send it. For example:

CPYSPLF FILE(QSYSPRT) TOFILE(SPLF132) JOB(*) SPLNBR(*LAST)
FTP '192.168.0.1'

ASCII
PUT QGPL/SPLF132 qsysprt.txt
QUIT

Hope it helps

Jonathan


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Srinivas Boggula
Sent: 20 July 2007 15:19
To: RPG programming on the AS400 / iSeries
Subject: Spoolfile and FTP

Hi every one,

Please can any one solve my query?

My requirement is I want to send output of a spool file to a particular
user through MAIL, and the same Spool file output I want to do FTP to a
particular user.

How can I do these two things?

Thanks in advance

Regards,
Srinivas


----------------------------------------------------------------DISCLAIMER--
-------------------------------------------------------
Information transmitted by this EMAIL is proprietary to iGATE Group of
Companies and is intended for use only by the individual
or entity to whom it is addressed and may contain information that is
privileged, confidential, or exempt from disclosure under
applicable law. If you are not the intended recipient of this EMAIL
immediately notify the sender at iGATE or mailadmin@xxxxxxxxx
and delete this EMAIL including any attachments



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.