Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SET SCREEN,LEAVE SCREEN

Former Member
0 Kudos

hI.

how set screen, leave screen, leave to screen statements works?

3 REPLIES 3

Former Member
0 Kudos

SET SCREEN.

- by default in screen attributes you have defined what will be the next screen, but if you want to change the next screen dynamically we use the statement SET SCREEN.

for ex: SET SCREEN 100.

LEAVE SCREEN.

- if you want to quit from the current screen, you use this option. so by default the next screen from attributes will be picked but if you have defined the next screen using SET SCREEN that it will overwrite.

ex: SET SCREEN 100.

LEAVE SCREEN.

LEAVE TO SCREEN.

- Leave to screen is combination of above two statements.

Former Member
0 Kudos

Hi osk,

1. these statements differ

in respect to how PAI will be further processed.

2. SET SCREEN 5000 (in pai module)

a) will first complete the pai processing

b) the it will swith to screen number 5000

3. leave SCREEN.

A) immediately it will swith to NEXT screen number

(which is specified in NEXT SCREEN attribute )

4. leave to screen 5000

a) IMMEDIATELY LEAVES THE CURRENT SCREEN

AND SWITCHES TO SCREEEN 5000

(DOES NOT COMPLETE PAI PROCESSING)

regards,

amit m.