Since the LANSA pop up window facility supports input capable windows, it is possible to create prompt key processing programs that do file maintenance via windows.
Consider the following prompt program for department number. Note that it allows the user to select a department, change an existing department, delete an existing department or even create a new department:
If the user elected to create, change or delete a department, then another pop up window might be used.
The following example might reflect what the screen looks like after using F6 and keying in the new department details:
The processing required to do this in the prompting program is all fairly standard. However, once this program is in place, a user can select from or maintain the departments file from any screen panel that has the field department number on it.
By using the CHECK_AUTHORITY built in function, and a little bit more RDML code, the maintenance capability can be excluded from users who are not authorized to use it.