[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting a Log from the FTPAPI Transactions
DSPJOBLOG OUTPUT(*PRINT)
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/dspjoblog.htm?resultof=%22%44%53%50%4a%4f%42%4c%4f%47%22%20%22%64%73%70%6a%6f%62%6c%6f%67%22%20
- sjl
-----Original Message-----
From: Mike Wills
Sent: Thursday, October 18, 2012 9:40 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Getting a Log from the FTPAPI Transactions
It's been a while, how do I force a dumb of the job log? Not finding it
online.
--
Mike Wills
http://mikewills.me
On Wed, Oct 17, 2012 at 10:55 PM, Scott Klement <sk@xxxxxxxxxxxxxxxx> wrote:
The ftp_log() API will enable logging for all FTP sessions, or
ftp_logging()
can be used to enable it for only one session.
Once enabled, the FTP protocol data will be written to the job log. IF
this
is a one-time deal, it might be easiest to do that, then dump the job log
to
a spooled file, and e-mail it to yourself.
If this will be an ongoing need, you can use the FTP_xproc() procedure to
register an exit procedure. Use the FTP_EXTLOG exit point, and it will
send
all of the logging information to a procedure of your choice instead of
sending it to the job log. You can then write code that puts it into a
file, or whatever is convenient for you. This way, you can make it look
nice in an e-mail, and make it go automatically (without a need for stuff
like dumping a job log.)
-SK
On 10/17/2012 9:29 PM, Mike Wills wrote:
How can I get a log dump of the FTP transaction so I can email to myself?
--
Mike Wills
http://mikewills.me
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------