All changed made by a trigger are rolled back, if:
1. Commitment Control is started with the default commitment scope *ACTGRP
and the trigger is running in the same activation group as the program that
modified the base table. (That's why it is recommended to create trigger
programs with Activation Group *CALLER)
2. Commitment Control is started with commitment scope *JOB. Data are rolled
back independent of the activation group in which the trigger program is
Mit freundlichen Grüßen / Best regards
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von rob@xxxxxxxxx
Gesendet: Thursday, 13.9 2012 20:12
An: Midrange Systems Technical Discussion
Betreff: Re: Tracing Physicial File R/W Actions
Does a trigger get called on a rollback?
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail
to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
Kendallville, IN 46755
From: Karl <k.mainville@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>,
Date: 09/13/2012 02:07 PM
Subject: Re: Tracing Physicial File R/W Actions
Sent by: midrange-l-bounces@xxxxxxxxxxxx
Look at this.
Add Physical File Trigger (ADDPFTRG)The trigger program can be specified
be called before or after a change operation occurs so this could help you
to find the job that is deleting your records.
I never used this command so I can't give you any trigger code example.
Maybe someone else have a sample program ?
On Thu, Sep 13, 2012 at 1:47 PM, Brian Piotrowski <
We have a physical file that we are having problems retaining data. For
some reason, data is being written to the system, but at random times it
will delete a random amount of records.
All of the programmers swear that it's nothing they have created that is
deleting the records. So with that said, is there any type of a
trace/audit that would show me all of the read/writes performed on a
We tried to set up a monitor in Navigator, but it doesn't appear to have
worked. Anybody else have a clue on how to track changes in a PF?
Assistant Mgr. - I.T.
Simcoe Parts Service, Inc.
Ph: 705-435-7814 x343
Please consider the environment. Don't print this e-mail unless you
The information contained in this communication is confidential and
intended only for the use of those to whom it is addressed. If you have
received this communication in error, please notify me by telephone
(collect if necessary) and delete or destroy any copies of it. Thank
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives