+ Reply to Thread
Results 1 to 5 of 5

Thread: Suppressing Job Log Messages

  1. #1
    Guest.Visitor Guest

    Default Suppressing Job Log Messages

    I am writing a program that is writing records to a keyed file. When I do the write I check for duplicates with an invalid key statement. Even with this check in the program my job log contains messages about trying to write a duplicate record. Is there any way to keep these messages from displaying in the job log? Thank you in advance for any help. Aaron Wolfe

  2. #2
    Guest.Visitor Guest

    Default Suppressing Job Log Messages

    Do a Read on the record before the write. That way you'll know to write or bypass. This takes care of the job log problem.

  3. #3
    Guest.Visitor Guest

    Default Suppressing Job Log Messages

    Does the file you are using, specify the UNIQUE keyword? Dave

  4. #4
    S.Mildenberger Guest

    Default Suppressing Job Log Messages

    Instead of doing a READ, do a SETLL to determine if the record already exists in a file. This method doesn't change any of the fields in the program and it more efficient than actually reading the record. Scott Mildenberger

  5. #5
    J.Panzenhagen Guest

    Default Suppressing Job Log Messages

    Perhaps too simple, but could you do a CHGJOB LOG(0 99 *NOLIST) before calling the program. This should not put anything in the joblog, but you may want to make the programming changes recommended to prevent the overhead of duplicate record checking and exception handling. John Panzenhagen

+ Reply to Thread

Similar Threads

  1. Error Messages
    By J.Pluta in forum RPG
    Replies: 2
    Last Post: 02-03-2003, 06:54 AM
  2. Suppressing printout from RUNSQLSTM command
    By michaelsoucy@netzero.net in forum General
    Replies: 0
    Last Post: 10-28-2002, 08:30 AM
  3. Error Messages
    By dchristie in forum Programming
    Replies: 6
    Last Post: 08-15-2001, 06:04 AM
  4. Suppressing Print Output
    By Guest.Visitor in forum Application Software
    Replies: 11
    Last Post: 06-07-2000, 05:04 AM
  5. Messages
    By Guest.Visitor in forum Application Software
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts