Page 1 of 1

Panel cannot receive 'exit' as input?

PostPosted: Mon Dec 04, 2023 7:56 pm
by RazVorox
The title pretty much says it all.
basic panel, default input field, whenever i type 'exit' in it
it just receives ' ' (blank).
any other word works.

did i miss something in the manual? is it a known thing?

Re: Panel cannot receive 'exit' as input?

PostPosted: Mon Dec 04, 2023 10:16 pm
by Pedro
EXIT is a ISPF dialog command. It normally results in your application being stopped and maybe RC=8. Possibly you have something that ignores the return code and still shows your panel.

If you want to process EXIT in your application, you have to define it as PASSTHRU in your application command table.

Or maybe you can detect it in the )PROC section of your panel:
)PROC
IF (&ZCMD = EXIT)
    &MYCMD = EXIT
    &ZCMD  =
 

Re: Panel cannot receive 'exit' as input?

PostPosted: Tue Dec 05, 2023 11:06 am
by RazVorox
Roger, and thank you.
I've tried a few more. like START.
Funny thing though, is that some work, most don't.

PASSTHROUGH. got it.
Learned a new skill right there :)