Panel cannot receive 'exit' as input?

TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...
RazVorox
Posts: 16
Joined: Wed Oct 19, 2022 11:52 am
Skillset: Much programming, very hi-tech, many wow.
(Total newb to anything z/os)
Referer: The expert forum

Panel cannot receive 'exit' as input?

Postby RazVorox » Mon Dec 04, 2023 7:56 pm

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?

User avatar
Pedro
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Skillset: ISPF
Referer: google
Location: Silicon Valley

Re: Panel cannot receive 'exit' as input?

Postby Pedro » Mon Dec 04, 2023 10:16 pm

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:

Code: Select all

)PROC
IF (&ZCMD = EXIT)
    &MYCMD = EXIT
    &ZCMD  =
 
Pedro Vera

RazVorox
Posts: 16
Joined: Wed Oct 19, 2022 11:52 am
Skillset: Much programming, very hi-tech, many wow.
(Total newb to anything z/os)
Referer: The expert forum

Re: Panel cannot receive 'exit' as input?

Postby RazVorox » Tue Dec 05, 2023 11:06 am

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 :)


  • Similar Topics
    Replies
    Views
    Last post