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

Numeric Check


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri May 27, 2011 6:39 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri May 27, 2011 8:12 pm
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: 308
Location: Vizag / US

PostPosted: Wed Jul 06, 2011 3:03 am
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 06, 2011 3:06 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts How to check whether who renamed the ... JCL & VSAM 3
No new posts No ++JCLIN, APPLY CHECK job JCL & VSAM 1
No new posts Convert HEX to Numeric DB2 3
Search our Forums:

Back to Top