I have display file with load all subfile and using function key 'F3= Exit' ,'F5=Refresh' and 'F9=Print'. I want to preventing lock of screen if user press any invalid function key(anything except F3,F5,F9).Could any one suggest me any solution? I have used VLDCMDKEY at display file but in RPG ,when invalid key is pressed, screen get locked and it's not read the next line after EXFMT as record get locked .so, it's not entering to the desired condition and not showing error msg 'Function key not allowed'.
Actually I want a exact functionality as AS/400 screen does when any invalid function key is pressed. It's shows message 'Function key not allowed'. I want to do the same thing with my program.