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

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


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Sep 05, 2012 12:44 pm
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

Moderator Emeritus


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

PostPosted: Wed Sep 05, 2012 6:41 pm
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
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: 6966
Location: porcelain throne

PostPosted: Thu Sep 06, 2012 10:42 am
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Sep 06, 2012 1:05 pm
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: 2454
Location: Hampshire, UK

PostPosted: Thu Sep 06, 2012 4:24 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts SQLCODE=-311 in Cobol SP-DB2. COBOL Programming 2
No new posts COBOL 6.4 - User Defined Function nee... COBOL Programming 6
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top