Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Rexx & ISPF Keys

1 view
Skip to first unread message

Moyeen A Khan

unread,
Sep 5, 2003, 7:23:31 PM9/5/03
to
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?

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX

Frank Clarke

unread,
Sep 6, 2003, 10:19:01 AM9/6/03
to
On 5 Sep 2003 16:23:31 -0700, ma...@DAIMLERCHRYSLER.COM (Moyeen A
Khan) wrote:
<OF3C068E65.205D8D44...@wk.dcx.com>

>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.

0 new messages