Procedure OnSaveRecord
OnSaveRecord is called any time a DD record is saved. However, it is only called if there is an actual change to be saved. It is called within Save_Main_File and is called before the save occurs. When called, the global table buffer contains all of the information to be saved. Because this event is only called when a record changes, it can be useful if you wish to do perform some kind of change status logging. This is different than Save_Main_File, which is called whether there is a change or not.
By default OnSaveRecord does nothing.
Procedure OnSaveRecord Date dNow String sUser SysDate dNow Get psCurrentUser to sUser // this would be a custom method you provide Move dNow to MyFile.LastChange Move sUser to MyFile.LastChangedBy End_Procedure
This message is always called in a locked state. Do not perform user input in this event.