allowing only numeric data



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

allowing only numeric data

Postby kandrepavan » Fri Jul 06, 2012 1:53 pm

Hi All,

In cics map design in a particular field i want to allow only numeric data to be entered.

I tried with attrb=(num,.. ) in map design , but unable to get it.



thanx and regards.
k pavan
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: allowing only numeric data

Postby chandurokzz » Fri Jul 06, 2012 1:58 pm

Hi,

please post the code.. so that we can help u
chandurokzz
 
Posts: 10
Joined: Wed Apr 11, 2012 12:49 pm
Has thanked: 1 time
Been thanked: 0 time

Re: allowing only numeric data

Postby Robert Sample » Fri Jul 06, 2012 2:38 pm

What does "unable to get it" mean? Did your numeric field not compile? Did it compile but allow letters when you tested it? Did it compile but allow special characters when you tested it (and if so, which special characters -- details are very important)? Do something else entirely that you haven't explained?

The quality of responses you receive on this forum are DIRECTLY related to the quality of the questions you pose. And this post was an extremely poorly worded and poorly thought out post.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: allowing only numeric data

Postby kandrepavan » Fri Jul 06, 2012 3:35 pm

Hi all,

unable to get it means .... it is allowing to enter other characters


thanx and regards.
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: allowing only numeric data

Postby Robert Sample » Fri Jul 06, 2012 4:59 pm

You'll need to post the map definition for that field (at a minimum) for us to be able to see what's going on.

And when you say "other characters" -- TRY TO BE SPEICFIC NEXT TIME! Is the field allowing alphabetic characters? Is the field allowing numeric characters? Is the field allowing special characters? Which special characters are being allowed -- just period or any special character or .... ?
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: allowing only numeric data

Postby dick scherrer » Fri Jul 06, 2012 7:14 pm

Hello,

Suggest you consider performing ALL of the edits within the program (not the map definition).

All of my clients have gone to this method so that all errors presented to the user have the same "touch and feel". A proper message rather than some "hardware" behavior and placing the cursor on the problem field for re-entry.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: allowing only numeric data

Postby Monitor » Fri Jul 06, 2012 8:36 pm

Specifying a field as numeric, sets the numeric bit in the attribute byte, BUT - the 3270 emulator might not be configured to support numeric lock. Also, as mentioned, you should always do a numeric test on the data received in the I-variable. A couple of characters are still classified by the terminal as numeric, regardless of the specification.
Monitor
 
Posts: 98
Joined: Wed Jan 18, 2012 8:59 pm
Has thanked: 0 time
Been thanked: 7 times

Re: allowing only numeric data

Postby kandrepavan » Tue Jul 10, 2012 3:04 pm

Hi all,

Thank u for answering .
Actually i was using a ibm pcom emulator. At last i got it. These are the steps u need to follow if u are using IBM PCOM.

Resolving the problem:
Follow these steps to find the 3270 numeric lock feature in Personal Communications and set it to Yes to allow only numeric data to be entered into the field:

1.Click Edit


2.Choose Preferences > Appearance > Display Setup


3.From the Display Setup panel, scroll down in the Category section and click Viewing


4.Under Settings, you will see 3270 Numeric Lock with radio buttons for Yes and No. Select Yes if you want 3270 numeric lock


5.Click OK

These users thanked the author kandrepavan for the post:
BillyBoyo (Tue Jul 10, 2012 3:18 pm)
kandrepavan
 
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: allowing only numeric data

Postby BillyBoyo » Tue Jul 10, 2012 3:18 pm

Thanks for letting us know the resolution, as it can help someone with a similar problem.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: allowing only numeric data

Postby dick scherrer » Tue Jul 10, 2012 10:33 pm

Hello,

Yes, thank you for the update :)

However, even though you found a way, i'd still suggest doing an experiment with the "edit" in the code rather than in the terminal definition - just so the users can see both methods.

Also, if the solution requires manual editing on every pc it may be unmanagable (more so if they are not all in the same building). There may be an issue that some need it the way it is and some may require your "mod" to the setup for this app to work . . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Next

Return to CICS

 


  • Related topics
    Replies
    Views
    Last post