Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ISPF commands invoked from a Rexx Exec 1

Status
Not open for further replies.

RexxISPF

IS-IT--Management
Dec 29, 2011
1
US
I am looking for a way to invoke ISPF line commands from a Rexx Exec. Specifically, I would like to automate the exiting out of ISPF with a Rexx exec. I may have multiple ISPF sessions started so I may have to issue the "=x" multiple times. I can already issue the TSO logoff once I have exited ISPF.

Any help would be greatly appreciated.
 
I know that you can use REXX, like any other language, to invoke ISPF Services using the ISPEXEC address, or from within an ISPF Edit Macro using the ISREDIT address. I personally don't know of any other Address type that's relevant to the ISPF envitronment, but I'm not an ISPF expert.
 
The drawback with entering '=x' repeatedly (which can be done with a macro in a 3270 emulator) is that not all ispf apps will stop. If I remember correctly '=X' issues END commands repeatedly. An app that's active might see END and then display a 'are you sure you want to end' screen (if eg starting the app has a big overhead). But on that screen pressing END might take you back to the app rather than exit from it. So an '=X'-triggered sequence of ENDs will hang the ispf session.

In my own ispf apps I used to have a bit of code that would count such a app-confirmexit-app-confirmexit ... loop and if it was happening many times (say 20) it wa very unlikely to be caused by a person pressing F3 multiple times... so I'd stop the app. But apps written by other people can have the problem too.

Also if anything has interrupted full-screen display, eg a line-mode TSO message, the =X things stalls, IIRC.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top