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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading PF keys in REXX?

Status
Not open for further replies.

imrexx

Programmer
Nov 9, 2005
12
US
Hi

i am doing a REXX program which executes recursively and it needs to stop by pressing a particular PF keys or quitting from the current screen. i.e. it starts executing by giving a macro in current EDIT screen. when user quits the current screen the REXX program shud stop.

Could any1 pls suggest how to check that in my program. if possible could any suggest with an example?

Thanks
Imran
 
The only keys that can do this are PA1 and PA2 because they cause an interrupt. PFkeys cannot do this.

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Hi Frank

Thanks for your valuable information. Could you please give me an example to handle those interrupts?
 
You don't write code to 'handle' those interrupts. REXX doesn't recognize PA2 (an interrupt happens but REXX ignores it); on PA1 (ATTN) REXX halts and prompts the user at the keyboard.

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top