[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: RCMD in Job Log



It's probably not _designed_ to log such things.  The book, at least http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/rzaiq/rzaiq.pdf, does not mention one way or another.  If you execute RCMD DSPJOB OUTPUT(*PRINT), does output get produced in the job/place you expect?  Is this the job that you've queried for more detail from the joblog?  Have you watched the server job to see that nothing is logged?  Tried to change that job's logging level externally?

If it were my system and if I were -- oh, let's say "generous" since crazy is such a bad word -- enough to allow for RCMD's use, I would certainly have an exit program that logged anything exercised by that function.  That would be my recommended approach - and may well be what's happening on the remote system, albeit unbeknownst to you.

"Alan Campin" <Alan.Campin@xxxxxxxxxxxxx> wrote:

>I was just wondering if anyone knew why it would not be logging on the
>target system. I know that it runs on the source system. I thought
>maybe it was submitting the command to a batch job but that doesn't
>seem likely because a CHGJOB works so not sure why the command is not
>showing up in the logs.
>
>From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
>Klement
>Sent: Friday, March 25, 2011 11:33 AM
>To: HTTPAPI and FTPAPI Projects
>Subject: Re: RCMD in Job Log
>
>
>hi Alan,
>
>FTPAPI is running on your source system.
>
>It has no control or influence on what the FTP server on the target
>system decides to log or not log.
>
>
>On 3/24/2011 5:18 PM, Alan Campin wrote:
>>
>>     I have written an FTP of objects between our systems and if I
>have an
>>     error it displays a job log on the target system for debugging
>>     purposes but when I issue a FTP_RmtCmd and an error occurs
>nothing
>>     shows up in the target job log.
>>
>>     (Both systems AS400).
>>
>>
>>     For example, I run the following command and in this case the
>library
>>     XX1 is invalid.
>>
>>
>>     FTPOBJ OBJ((IL_DEV/TS0046 *SRVPGM XX1))
>>
>>
>>     If I display the job log on the source system I see messages
>telling
>>     me that the to library does not exist but nothing in the target
>job
>>     log.
>>
>>
>>     Is this something that FTP does for security? Not logging the
>command
>>     to be executed in the job log?
>>
>>
>>     Some other explanation? Since the command is running on the
>target
>>     system, you would think it would show up in the job log of the
>target.
>>     Everything else seems to show up.
>>
>>
>>     At the beginning of the transfer I am issuing a
>>
>>
>>     CHGJOB LOG(4 00 *SECLVL) LOGCLPGM(*YES)
>>
>>
>>     To make sure everything is being logged.
>>
>>
>>     Thanks for any help.
>>
>>
>>
>>
>>
>-----------------------------------------------------------------------
>> 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
>-----------------------------------------------------------------------
>
>________________________________
>
>No virus found in this message.
>Checked by AVG - www.avg.com<http://www.avg.com>
>Version: 10.0.1204 / Virus Database: 1498/3528 - Release Date: 03/25/11
>
> I was just wondering if anyone knew why it would not be logging on the
>   target system. I know that it runs on the source system. I thought
>   maybe it was submitting the command to a batch job but that doesn't
>  seem likely because a CHGJOB works so not sure why the command is not
>   showing up in the logs.
>
>
>   From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>   [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
>   Klement
>   Sent: Friday, March 25, 2011 11:33 AM
>   To: HTTPAPI and FTPAPI Projects
>   Subject: Re: RCMD in Job Log
>
>
>   hi Alan,
>   FTPAPI is running on your source system.
>   It has no control or influence on what the FTP server on the target
>   system decides to log or not log.
>   On 3/24/2011 5:18 PM, Alan Campin wrote:
>   >
>   >     I have written an FTP of objects between our systems and if I
>   have an
>   >     error it displays a job log on the target system for debugging
>   >     purposes but when I issue a FTP_RmtCmd and an error occurs
>   nothing
>   >     shows up in the target job log.
>   >
>   >     (Both systems AS400).
>   >
>   >
>   >     For example, I run the following command and in this case the
>   library
>   >     XX1 is invalid.
>   >
>   >
>   >     FTPOBJ OBJ((IL_DEV/TS0046 *SRVPGM XX1))
>   >
>   >
>   >     If I display the job log on the source system I see messages
>   telling
>  >     me that the to library does not exist but nothing in the target
>   job
>   >     log.
>   >
>   >
>   >     Is this something that FTP does for security? Not logging the
>   command
>   >     to be executed in the job log?
>   >
>   >
>   >     Some other explanation? Since the command is running on the
>   target
>   >     system, you would think it would show up in the job log of the
>   target.
>   >     Everything else seems to show up.
>   >
>   >
>   >     At the beginning of the transfer I am issuing a
>   >
>   >
>   >     CHGJOB LOG(4 00 *SECLVL) LOGCLPGM(*YES)
>   >
>   >
>   >     To make sure everything is being logged.
>   >
>   >
>   >     Thanks for any help.
>   >
>   >
>   >
>   >
>   >
> ----------------------------------------------------------------------
>   -
>   > This is the FTPAPI mailing list.  To unsubscribe, please go to:
>   > [1]http://www.scottklement.com/mailman/listinfo/ftpapi
>   >
> ----------------------------------------------------------------------
>   -
> ----------------------------------------------------------------------
>   -
>   This is the FTPAPI mailing list.  To unsubscribe, please go to:
>   [2]http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
>   -
> ______________________________________________________________________
>
>   No virus found in this message.
>   Checked by AVG - [3]www.avg.com
>   Version: 10.0.1204 / Virus Database: 1498/3528 - Release Date:
>   03/25/11
>
>References
>
>   1. http://www.scottklement.com/mailman/listinfo/ftpapi
>   2. http://www.scottklement.com/mailman/listinfo/ftpapi
>   3. http://www.avg.com/
>-----------------------------------------------------------------------
>This is the FTPAPI mailing list.  To unsubscribe, please go to:
>http://www.scottklement.com/mailman/listinfo/ftpapi
>-----------------------------------------------------------------------

--  
Sent from my Galaxy tablet phone with with K-9 Mail. Please excuse my brevity.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------