Q
Problem solve Get help with specific problems with your technologies, process and projects.

Error when physical file has an attached trigger

I have attached an trigger for the physical file, I have given the file information below.

 
Trigger Description
       Trigger time  . . . . . . . . . . . . . :            *AFTER
       Trigger event . . . . . . . . . . . . . :            *INSERT
       Allow repeated change . . . . . . . . . :            *NO
       Program Name  . . . . . . . . . . . . . : PGM        BIZ010
         Library . . . . . . . . . . . . . . . : LIB        ICIDEV
       Program is threadsafe . . . . . . . . . : THDSAFE    *UNKNOWN
       Multithreaded job action. . . . . . . . : MLTTHDACN  *SYSVAL 

Problem: When I am trying to insert a record to the file, I am getting CPF502B error.


CPF502B simply tells you that something has failed in the trigger program. Check the log to see if other messages have been produced before that one as they will give you a better idea of what the problem is.


Dig Deeper on RPG iSeries programming

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close