AS400 Mid Range/CL- Audit Journaling

Advertisement


Question
QUESTION: I am using the command DSPAUDJRNE to log all the commands. It also records the commands which a program is using. So if the program is called again and again, these commands are written in the log again and again which makes the log bulky. "So is there any way I can exclude the commands used in a CL program(s) from the log and include only those which are typed on the command line"?

ANSWER: There is a LOG option on the CRTCLPGM command that controls logging of CL program commands. Try recompiling the program with option LOG(*NO).

- Laird

---------- FOLLOW-UP ----------

QUESTION: Thanks for your reply. But in this way we have to recomplie all those program which a user(QSECOFR) will be using which we actually don't know. so we can't complie each program. I could found other solution for this, could you verify it..
That is - The system file QASYCDJ4 has a field 'CDCLP' which is a Yes/No flag. This field can tell us whether the command logged is run from a CL program or from the command line. And then we can filter out the command run from a CL program.

Answer
Yes, the CDCLP flag indicates whether the command was run from a CL or REXX program.  Another way to possibly accomplish what you're trying to do might be to use the LOGCLPGM option on the CHGJOB command for users whose CL commands you do not want to log.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.