Application Development and Automation 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: 
Read only

Leaving Screen

Former Member
0 Likes
1,049

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
Read only

Former Member
0 Likes
1,012

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,012

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

Read only

Former Member
0 Likes
1,012

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

Read only

0 Likes
1,012

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

Read only

0 Likes
1,012

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

Regards,

Rich Heilman

Read only

LucianoBentiveg
Active Contributor
0 Likes
1,012

A

Read only

Former Member
0 Likes
1,012

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

Read only

Former Member
0 Likes
1,013

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

Read only

Former Member
0 Likes
1,012

Hai Jerry

SET SCREEN 0.

LEAVE SCREEN.

Thanks & regards

Sreeni