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
 

 

Please suggest me how to disable a key through a COBOL prog?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
pradeep dodda

New User


Joined: 05 Sep 2012
Posts: 2
Location: India

PostPosted: Wed Sep 05, 2012 10:54 am    Post subject: Please suggest me how to disable a key through a COBOL prog?
Reply with quote

Hi
This is pradeep dodda.I'm currently doing a project related to online flight ticket reservation.This project uses the concepts like CICS,DB2 and COBOL..

My question is that how to nullify the Enter key?
When i press the "Enter" key in my application there is one particular action that takes place.After that action,when the user re-press the "Enter" key it should be disabled i_e the action should be nullified.

Can anyone suggest me?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Sep 05, 2012 12:44 pm    Post subject: Reply to: Please suggest me how to disable a key through a C
Reply with quote

It seems unusual to want to disable the Enter Key. Most screen designs use the Enter key a lot.

You're going to get very frustrated users, who will be used to using the Enter key.

Is this in the design, or just some idea of yours?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Sep 05, 2012 6:41 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

Who believes that disabling the Enter key is a good thing?

If the Enter key is disabled, the user will then have to use some function key - which are usually associated with specicific actions, not just proceeding.

If you really want to disable the Enter key, simply add code that if the Enter key is pressed, an error is shown and the screen returned to the user.
Back to top
View user's profile Send private message
pradeep dodda

New User


Joined: 05 Sep 2012
Posts: 2
Location: India

PostPosted: Thu Sep 06, 2012 10:21 am    Post subject: Reply to: Please suggest me how to disable a key through a C
Reply with quote

Hello Bill Woodger and Dick scherrer

I thank both of you for your kind replies.

@Bill Woodger : The Enter key will be disabled for the second time in that
particular screen only. Instead the Function key F1 will be given the same
functionality of the Enter key.And this was the condition mentioned in the design.....
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Sep 06, 2012 10:42 am    Post subject:
Reply with quote

Quote:
And this was the condition mentioned in the design....


is there a remark (in lines 23/24 of the screen)
indicating this 'required' action?
i assume that PF1 is a 'confirmation'.
what if the user does not want to confirm?
has the user any valid option other than PF1?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Sep 06, 2012 1:05 pm    Post subject: Reply to: Please suggest me how to disable a key through a C
Reply with quote

Well, it's good to have more info.

I was going to suggest including some "electricians' snippers" along with the user-documentation. Some instructions on how to prise off the key-top itself, snip the wire. That's be good-'n-disabled without having to worry about the software.

However... can you not do a bit of code which says "Please Press (P)F1 to Confirm?" if they press Enter at that inappropriate point?

By the way, I still think it will confuse people. Like on the mobile phone, press key on right to delete, key on left to confirm. Works for the first two "accidental delete attempts" then makes no difference :-)
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1825
Location: UK

PostPosted: Thu Sep 06, 2012 4:24 pm    Post subject:
Reply with quote

And (P)F1 is usually - everywhere - the Help key.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts IDMS DC027007 T58 TASK:ADS2 PROG:ADSO... gpowell382 IDMS/ADSO 2 Fri Jun 30, 2017 11:52 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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