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
 

 

Numeric Check

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

New User


Joined: 13 Sep 2005
Posts: 35
Location: India

PostPosted: Fri May 27, 2011 6:33 pm    Post subject: Numeric Check
Reply with quote

I have a 8 byte alpha numeric field in the map . I want to allow only numeric and numeric fields with spaces .
e.g I can allow 082,__082.
0_82 not allowed.
Here _ represents spaces.
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri May 27, 2011 6:39 pm    Post subject: Reply to: Numeric Check
Reply with quote

Review the PICIN and PICOUT keywords on the DFHMDF definition.

They might do the trick, with some modification.

Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7997
Location: Bellevue, IA

PostPosted: Fri May 27, 2011 8:12 pm    Post subject:
Reply with quote

Since you did not explain very precisely what you want, it's hard to provide a response. Are you wanting to generate an error message when you have invalid data in the field? Do you want to just get rid of the invalid data in the field? Are you wanting to check each byte separately? Can there be a sign in the field?

Either EXEC CICS BIF DEEDIT or reference modification would do what you want, depending upon exactly what you're attempting to achieve.
Back to top
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 309
Location: Vizag / US

PostPosted: Wed Jul 06, 2011 3:03 am    Post subject:
Reply with quote

hi,

the only way i see is, define the field as alpha-numneric and validate the fields once you receive the map in the program...

let me know if you found a better solution, it helps us to learn as well....

thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7997
Location: Bellevue, IA

PostPosted: Wed Jul 06, 2011 3:06 am    Post subject:
Reply with quote

Gautam512, after 5 1/2 weeks with no further response, do you really expect to get anything from the o/p?
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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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