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

Call Screen

Former Member
0 Likes
442

Hi ALL,

I have a stmt call screen 100 inside a subroutine.On this screen i have a continue button.When i press the continue button i want the stmts below this call screen 100 stmt and all other subroutines to be executed.I dont want to stop as soon as my call screen is executed.

As this stmt is inside a subroutine, i cannot place all the other subroutines in the PAI of this screen 100 .

Pls suggest.

Hi ALL,

I have a stmt call screen 100 inside a subroutine.On this screen i have a continue button.When i press the continue button i want the stmts below this call screen 100 stmt and all other subroutines to be executed.I dont want to stop as soon as my call screen is executed.

As this stmt is inside a subroutine, i cannot place all the other subroutines in the PAI of this screen 100 .

Pls suggest.

2 REPLIES 2
Read only

Former Member
0 Likes
399

hi,

then use set screen instead of call screen...

because if u use set screen, it will execute next statement after set screen and then control goes to the screen given in set screen...so ur requirements is fulfilled by using set screen..

Rgds.,

subash

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
399

Hi,

Use it this way:-

Say you have for PAI module code:-


module m_100.
  perform sub1.
  perform sub2.
  perform sub3.
endmodule.

form sub1.
  "code
  set screen <screen_number>.
  "code
endform.

form sub2.
  "code
endform.

form sub3.
  "code
  "code
  leave screen.
endform.

This will execute all the code for sub1 and the set screen say 200 and will execute rest code for sub2 and sub3. When statement leave screen is encountered then the control moves to screen 200.

Hope this solves your problem.

Thanks & Regards,

Tarun Gambhir