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 handle when the user presses 'ENTER'

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to handle when the user presses 'ENTER'
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

Moderator Team Head


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

PostPosted: Thu Nov 23, 2006 9:53 am    Post subject: Re: how to handle when the user presses 'ENTER'
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: 2360
Location: Israel

PostPosted: Thu Nov 23, 2006 12:06 pm    Post subject:
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    Post subject:
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    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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm
No new posts SORT - E15 and E35 using same user ex... Abhi Nature DFSORT/ICETOOL 12 Mon Oct 03, 2016 4:33 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm


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