IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to use Enter and PFKey in Panel


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Unique

New User


Joined: 10 Jul 2007
Posts: 24
Location: Blore

PostPosted: Mon Aug 13, 2007 12:44 pm
Reply with quote

I have a panel in which

(a) I have to navigate to next panel when ENTER is pressed.
(b) PF3 to exit.
(c) PF12 to go back.

Using this forum, I was able to get the idea of using PFKEY using .ZPFKEY
But the PFKEY is not handling as I wanted. Also, I don't know how to use ENTER.
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Mon Aug 13, 2007 12:49 pm
Reply with quote

Hi Unique,

Can you post your Panel definition and the Rexx code.


Thanks
Sai
Back to top
View user's profile Send private message
Unique

New User


Joined: 10 Jul 2007
Posts: 24
Location: Blore

PostPosted: Mon Aug 13, 2007 12:59 pm
Reply with quote

In my panel, code is

)BODY
%COMMAND ===>_ZCMD
%
% !Msg
% Enter => NEXT PF3 => Exit PF12 => Previous


)PROC
&KEY = .PFKEY
)END

and in the program, I have coded

"ispexec libdef ispplib dataset id('tsa9z.zarina.rexx.panels')"
"ISPEXEC DISPLAY PANEL (@Test2
if RC¬= 0 THEN
DO
IF KEY='PF03' THEN EXIT
ELSE
"ISPEXEC DISPLAY PANEL (@panel3"
END
ELSE
IF KEY='PF12' THEN
"ISPEXEC DISPLAY PANEL (@panel3"
ELSE
< I need to display INVALID KEY PRESSED in the same panel
But dont know how to do that >
END

Thanks
Unique
Back to top
View user's profile Send private message
ironmike

New User


Joined: 07 Aug 2005
Posts: 33

PostPosted: Mon Aug 13, 2007 10:27 pm
Reply with quote

ENTER is handled like this, in the )PROC section of the panel:

Code:
 IF (.RESP = ENTER)
   &ENTKEY = YES


.RESP can be either ENTER or EXIT; EXIT would also handle your PF3 case. The panel code above sets the variable ENTKEY to YES if the user hits ENTER.

You display INVALID KEY PRESSED in the same panel by using the SETMSG service to set a message variable, then you DISPLAY the panel again, like this:

Code:
zedsmsg = '';
zedlmsg = 'INVALID KEY PRESSED";
"ISPEXEC "SETMSG MSG(ISRZ000)"
"ISPEXEC DISPLAY PANEL(@panel3)"


You need to do some more work on this; READ THE ISPF MANUALS before you ask questions of others...
Back to top
View user's profile Send private message
Unique

New User


Joined: 10 Jul 2007
Posts: 24
Location: Blore

PostPosted: Sun Aug 19, 2007 9:36 pm
Reply with quote

Hi,
This is how i solved .Its working for me .

I defined all PFKEY
ZPF03 = 'END'
ZPF12 = 'CANCEL'
"VPUT (ZPF03 ZPF12) PROFILE"


"ISPEXEC DISPLAY PANEL (@MAIN)"
Select
when Key = ' ' , Enter key is pressed
when Key = 'PF12' , Cancel logic
when Key = 'PF03' , Exit Logic

Any Suggestions/comments are welcome

Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Call program, directly from panel CLIST & REXX 9
No new posts panel creation question TSO/ISPF 12
No new posts Panel variable model line TSO/ISPF 3
No new posts REXX table content on panel will be r... CLIST & REXX 6
Search our Forums:

Back to Top