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

Answers were Sorted based on User's Feedback



Can we trigger an rpg program which has user interaction with display file when updating a file us..

Answer / 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

Can we trigger an rpg program which has user interaction with display file when updating a file us..

Answer / sachin

no you can't use rpg/400
you can use triggers on ile programs

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?

2 Answers   HSBC,


wat is the difference between array and multiple occurence data structure?

4 Answers   Four soft,


i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel

2 Answers   IBM,


what is data area and how it is used in rpg program ?

0 Answers   IBM,


What is the difference between iter and do?

0 Answers  






Suppose in CL we reach at end of file and again we have to reach from 1 record

3 Answers   TCS,


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

1 Answers  


How can you delete a record from a file in RPG without using DELETE oppcode?

2 Answers   UST,


Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?

1 Answers   TCS,


1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the error through the RPG/400

10 Answers   IBM, Tech Mahindra,


1.The questions have given an array declaration and move operation then this statement is correct or not?

3 Answers   TCS,


what is difference between DSPFD and DSPFFD?please give me real senario with good example?

1 Answers  


Categories