How to validate screen exits in mainframe automation

Hi,

I am automating a mainframe application & using terminal activities. I want to do screen exist validation. Like I need to check if the screen exist then I have to proceed further. How to do this using terminal activities.is it possible? or we have to use use application/browser & check app state activities for screen validation?

Please Clarify!!
Thanks

If its AS400 they usually have the screen name/code at the top corner; you’d have to do a get text from position, then check to see if it changes or stays the same.