----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX
>Hi Gurus
>I am writing an application ISPF panel. I want to trap the PF Key the user
>is pressing. I have assigned a variable to .PFKEY in the PANEL definition.
>Whenever a PFKEY is pressed, I got a message assigned to the pf key. Eg if
>I press PF8, I get the message -- "DOWN " is not active. I am not using
>any ISPF Tables. Is there a way to bypass this message and just trap the
>key value?
Yes.
)PROC
&PFKEY = .PFKEY
-----------------------------------------------------------------
From
Interactive System Productivity Facility (ISPF)
Dialog Developer's Guide and Reference
OS/390 Version 2 Release 10.0
Document Number SC28-1273-04
-----------------------------------------
6.3.11 .PFKEY
The .PFKEY control variable is set to a value that reflects the
function key pressed by a user while the panel is being displayed.
+--------------------------------------------------------+
Ś .PFKEY = value
Ś
Ś variable = .PFKEY
Ś
+--------------------------------------------------------+
where:
value
The function key (F01-F24) pressed by a user.
The value of .PFKEY can be examined in the )PROC section of the panel
and copied into dialog variables through use of assignment statements.
If no function key is pressed by the user, .PFKEY contains blanks.
.PFKEY is blank during processing of the )INIT and )REINIT sections.
The .PFKEY control variable can appear on the right side of an
assignment statement, making it act like a function.