So what am I going to do I’m going to add a trigger to my file called cussed vowels and it’s in a library UTIL PA demo my trigger time is going to be after so after the record is updated I want to the trigger to fire I’m sure I like that word muscle IBM flawless or quality of fire one event pro on this trigger to occur I want it to occur when the file is updated.
I’m not interested when a record is added or when i wreck was deleted because they’ll eat a ball globe is credited is whether this is actually updated unless he puts watering first article now what am I going to call but the trigger fires I’m going to call a pro called trip at is in library UTIL PA okay that’s getting cleared the defaults for everything else since.
When I press ENTER now it says trigger added to physical file so now the trigger that’s going to occur now if my dear few that file again at springtime idea if you promote now if I update the final getting see if I change that customers now to be powerful e when I press ENTER watch down the bottom because you’ll see some status messages because the application is going to run is actually caught on the Status Messages sue sees it but says it in see whether.
It was very very quick but it says building a file attended the file down to a PC basically what we’re doing here is calling one of our own applications I’m doing one more side receiving soon be eagle-eyed I’m not IBM i (AS/400) quite sure whether the go-to webinar software actually made that does it puts who you’re not no you can see in a suit number one so that’s actually running the application of the background now what we’ve done is like I said we’ve run a room one application.
I just quickly show you the program how it looks so those of you are not RPS type people look away now so basically this is the program that trigger called okay so there’s the bottom foot buffer I’ve got the buffer length I’ve got up here a data structure over the string so I can work out where the data stars the length of the day to where the data ends a length of the data I’ve got my before and after image for my data structures so it no prefix all the names of beyond the score i underscore I’ve doing something interesting here because my customer credit limb is actually held on a different file so my trigger although is getting all the data from my customer bounce file it doesn’t know at that point whether over.