Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to use Enter and PFKey in Panel

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to use Enter and PFKey in Panel
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISPF - How to come out of ISPF Panel parasmalik20 TSO/ISPF 5 Tue Feb 21, 2017 7:44 pm
No new posts the use of 'B3'x character in a panel Pedro TSO/ISPF 1 Thu Feb 16, 2017 3:09 am
No new posts Design of ISPF panel prino TSO/ISPF 2 Wed Jan 25, 2017 10:31 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us