Can we trigger an rpg program which has user interaction
with display file when updating a file using the command
ADDPFTRG?

Answer Posted / samul paul

Normally,we avoide to add the Trigger (Update operation)
for that PF.
If Update trigger exists with the same program name and
*After then it will trigger following msg when u try to
update the record in display file.

An error in the trigger program was detected after UPDATE
on file USRPF.
Function check. RNX1024 unmonitored by PGM1 at statement
0000000095,
instruction
X'0000'.

An error in the trigger program was detected after UPDATE
on file USRPF (C
G D
F).

An error in the trigger program was detected after UPDATE
on file USRPF (C
G D
F).

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by an input subfile, what are the keywords required?

777


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

718


How to select highest score of each subject or how to select highest income of every month?

1299


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1320


What is file identifier where we can use?

652






what is file information data structure?

1379


how do I declare a table or array in rpg iv?

741


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1459


what is the necessary keyword needed to scroll subfile records?

707


which program rpg or cl is efficent to update a transaction onto a database file and why ?

749


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

511


How to declare the pull button in AS/400..

1884


How to write record if no field or the field are different in physical file in rpgle ?

494


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

521


How would display prime numbers using CL program?

5682