Hi Madhu,
The Code Stage is designed to execute code.
I recommend you that if you want to make any calculations with screen data, pass this data using arguments as input of the Code Stage. Spy in the "Application Modeller", storage the value with the "read" stage, and insert it as an input in your code.
Bye 🙂