[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RCMD in Job Log
Alan,
Whenever you are running a remote command, the best way to handle the
library list is to submit the job to a specific job description. This
will esure that the library list is correct and will also be easier to
find the job. Break the jobs up into smaller units of work if there
are multiple steps, with each step activating a new procedure on the
target system.
Instead of:
Process 1...
RCMD run
Process 2...
Try
Process 1...
RCMD(SBMJOB(..) JOB(...) JOBD(lib/jobd) LOG(4 0 *SECLVL)
On the other side within the submitted job:
RCMD(SBMJOB(Process 2...) JOB(...) JOBQ(lib/jobd) LOG(4 0 *SECLVL)
This not only avoids timeouts during the FTP process, but you can view
the job log of all steps.
Ken Sherbert
Please note: message attached
From: Alan Campin <Alan.Campin@xxxxxxxxxxxxx>
To: "ftpapi@xxxxxxxxxxxxxxxxxxxxxx" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RCMD in Job Log
Date: Thu, 24 Mar 2011 22:18:45 +0000
____________________________________________________________
[1]Groupon(TM) Official Site
1 ridiculously huge coupon a day. Get 50-90% off your city's best!
[2]Groupon.com
References
1. http://thirdpartyoffers.netzero.net/TGL3242/4d8ca14649c01349f05st05duc
2. http://thirdpartyoffers.netzero.net/TGL3242/4d8ca14649c01349f05st05duc
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
-----------------------------------------------------------------------