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: 

Leaving Screen

Former Member
0 Kudos

Given this question, which answer would you pick?

Which statement interrupts processing of the currenet screen?

A.  Leave screen
B.  Call screen 100

I'd be curious to know what others would choose for the answer.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Jerry,

Both will stop processing.

In A.

the system will stop the processing of the current screen and go to the NEXT SCREEN (from attributes of the screen) and will never come back to the current screen.

In B.

The system will temporarily stop the processing of the current screen and will go to the called screen. And whenever from this second screen it will find LEAVE TO SCREEN 0, will resume the processing of the current screen

Regds

Sandip

8 REPLIES 8

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I would say both interrupts the processing of the current.

LEAVE SCREEN, will stop the processing of the current screen and leave to a next screen in the flow.

example...

SET SCREEN 0.
LEAVE SCREEN.

CALL SCREEN, will stop the processing of the current screen and go to that screen, when the use leaves the screen 100, control is then returned to the caller.

Regards,

Rich Heilman

Former Member
0 Kudos

Both Statements interrupts processing of the current job.

Leave screen: interrupt the processing and goes back to previous screen.

call screen 100 : interrupt the processing and call screen 100.

Regards

Aman

0 Kudos

According to my answer key, the 2nd one (Call Screen 100) is correct. I am not sure I agree with that one...

0 Kudos

I guess it is how you interpret the word "Interrupt"

Regards,

Rich Heilman

LucianoBentiveg
Active Contributor
0 Kudos

A

Former Member
0 Kudos

Both.........

Leave screen

Call screen 100

statements interrupts processing of the currenet screen

Once Leave Screen statement reached system will come out of the current screen.

At Call Screen 100 statement system will stop the current screen process and goto the screen 100.

Message was edited by: mohammad molla

Former Member
0 Kudos

Hi Jerry,

Both will stop processing.

In A.

the system will stop the processing of the current screen and go to the NEXT SCREEN (from attributes of the screen) and will never come back to the current screen.

In B.

The system will temporarily stop the processing of the current screen and will go to the called screen. And whenever from this second screen it will find LEAVE TO SCREEN 0, will resume the processing of the current screen

Regds

Sandip

Former Member
0 Kudos

Hai Jerry

SET SCREEN 0.

LEAVE SCREEN.

Thanks & regards

Sreeni