Newsletters   Subscriptions  Forums  Store   Career  Media Kit  About Us  Contact  Search   Home 
fhg
Volume 5, Number 26 -- June 29, 2005

Remove Misleading Messages from Job Logs,
Take Two


Hey, Ted:


I agree that removing handled messages from the job log is very helpful. One optimization would be to put the API call in its own procedure, as that API has many parameters. Because we are adding a call level, we need to adjust the CallStackCtr parameter to 1 instead of 0. That is, we want to remove the message sent to the caller of our procedure.



prmvExceptionMsg  b                   export
d                 pi

d ApiErr          ds
d  provided                     10u 0 inz(%size(ApiErr))
d  available                    10u 0 inz  
d MsgInfo         s              8a
/free
    QMHRCVPM(MsgInfo: %size(MsgInfo): 'RCVM0100': '*': 1: '*EXCP'
             : *blanks : 0 : '*REMOVE': ApiErr) ;
/end-free
p                 e

Then the application code becomes:

monitor;                                                   
   three = one / two;                                      
on-error;                                                  
  rmvExceptionMsg() ; 
  three = *zero;                                          
endmon;

--Thierry




Hey, Ted:

Just read this week's Four Hundred Guru. Great as always.

Another way to reduce the size of job logs is to change the logging level of the job in question. I have reduced job logs by making a simple change to eliminate non-errors by using CHGJOB LOG(4 10 *NOLIST) to eliminate 00 info messages.

--Russ



Thanks to Thierry and Russ for these ideas.

--Ted

Sponsored By
ITERA

Researching High Availability Solutions?

View the contents of this valuable iSeries high availability resource portal that includes HA white papers, archived webinars, case studies and more.

Learn essential information about iSeries high availability before you implement this powerful business-continuity technology.

Click here for instant access.


Technical Editors: Howard Arner, Joe Hertvik, Ted Holt,
Shannon O'Donnell, Kevin Vandever
Contributing Technical Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Marc Logemann, David Morris
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.


THIS ISSUE
SPONSORED BY:

T.L. Ashford
iTera
WorksRight Software


Four Hundred Guru

BACK ISSUES

TABLE OF
CONTENTS
API Corner: TCP/IP List Network Interfaces to a Browser

Remove Misleading Messages from Job Logs, Take Two

Admin Alert: Three iSeries Access Data Transfer Download Tricks


The Four Hundred
IBM Is Not Killing Off RPG III, RPG/400 in i5/OS

How the Server Ecosystems Stack Up

SOA: A Life-Line for the iSeries?

As I See It: In the Aftermath

Four Hundred Stuff
Original Looks for Performance Problems with New TestLOAD Tool

SpoolFlex Gains Audit Trail for Regulatory Compliance

Databorough's X-Analysis Now a WDSc Plug-In

eSP Delivers Finer-Grained Control of RF Devices

Four Hundred Monitor


Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc. (formerly Midrange Server), 50 Park Terrace East, Suite 8F, New York, NY 10034
Privacy Statement