605 pts.
 Does QCMD write to job log when called from RPG
If I have an RPGLE program that executes a CL command using a CALLP to to QCMD, will that CL command be written to the job log.  The LOGCLPGM paramaeter is set to *YES, if that matters.

Software/Hardware used:
AS/400
ASKED: January 21, 2010  2:14 PM
UPDATED: April 30, 2010  11:47 PM

Answer Wiki:
Since there doesn't seem to be any CLP involved, the LOGCLPGM() attribute wouldn't seem to have relevance. The logging would more likely be controlled by the job's LOG() attribute. Technically, it could also be "controlled" by any code in the job that received and removed the message as a normal part of joblog cleanup. Tom
Last Wiki Answer Submitted:  January 21, 2010  8:25 pm  by  TomLiotta   107,845 pts.
All Answer Wiki Contributors:  TomLiotta   107,845 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

That was my thought too about the LOGCLPGM and LOG parameters, but it’s always good to get a second opinioon. Thanks for the input.

 605 pts.

 

BTW, why did you choose QCMD rather than QCAPCMD or even QCMDEXC? There are behaviors of QCMD that can be difficult to overcome. Of course, those might be the exact behaviors that you’re using.

Tom

 107,845 pts.