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

How to handle when the user presses 'ENTER'


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

New User


Joined: 08 Jul 2005
Posts: 1

PostPosted: Wed Nov 22, 2006 6:12 pm
Reply with quote

Hi,

I just want to know what value will be thrown if the user presses ENTER key after giving necessary inputs in a panel.

Also, it would be fine if anyone could tell me whatz the system variable for ENTER key and how it can be used if poss.

Thanks
Kumar
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Nov 23, 2006 9:53 am
Reply with quote

Two options:

1. Copy an ISPF MODEL for the panel display service you're using (DISPLAY, SELECT, TBDISPL) into your program. The MODEL for the service will include comments as to all the possible return-codes and what they mean.

2. Create a test program to display the panel with the selected service. Display the value of the return-code immediately after the panel is displayed. Note the different retrun-code values as you use different commands (Enter, End, Cancel).
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Nov 23, 2006 12:06 pm
Reply with quote

Also, you can use Dialog test (option 7) to see return codes.

O.
Back to top
View user's profile Send private message
warren

New User


Joined: 30 Aug 2006
Posts: 14
Location: Tampa, Florida

PostPosted: Tue Nov 28, 2006 8:02 pm
Reply with quote

The variable is ".PFKEY". In the ")PROC" section of your panel, u can define a variable to receive it, such as "&PFKEY = .PFKEY". Then u can test the value of PFKEY. It will be 4 digits, such as "PF01", etc. The ENTER key will be represented by 4 spaces.
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 PuTTY - "User is not a surrogate... IBM Tools 5
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
Search our Forums:

Back to Top