Your script does not execute at all
Sometimes your script does not seem to execute at all.
Typically this is because it is because it is not being invoked in a 5250 screen navigation in the way that you thought it would be.
Use the Framework) -> (Tracing) -> Application Level menu options and trace the flow of control in your application to understand the navigation in detail. Generally this will reveal why your script is not being invoked.