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
 

 

How to validate Binary/Comp data ??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
bhavishya_bhandari

New User


Joined: 30 May 2006
Posts: 7

PostPosted: Wed Jul 05, 2006 3:36 pm    Post subject: How to validate Binary/Comp data ??
Reply with quote

Hi
Am getting binary data in COMP form from a file.
Initially I read it in Alphanumeric datatype but
want to validate whether the data is Numeric or not.
How Can i do that ??
Back to top
View user's profile Send private message

kondakonda

New User


Joined: 20 Mar 2006
Posts: 34

PostPosted: Wed Jul 05, 2006 4:10 pm    Post subject: Re: How to validate Binary/Comp data ??
Reply with quote

Hi,

we can validate the date whether it is numeric/aphanumeric using the following condition like

IF identifier is NUMERIC/ALPHABETIC/ALPHABETIC-HIGHER/
ALPHABETIC-LOWER

Thanks.
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Jul 05, 2006 4:18 pm    Post subject:
Reply with quote

Hi,

Intoduce a sort step in the job to covert the comp data to normal display format of the file.

Then give that file input to your cobol program. there are options in cobol like is numeric ..etc

Hope this helps

Regards
jai
Back to top
View user's profile Send private message
bhavishya_bhandari

New User


Joined: 30 May 2006
Posts: 7

PostPosted: Wed Jul 05, 2006 4:27 pm    Post subject:
Reply with quote

yeah ... dat was gud one ...
thnx jai ... icon_lol.gif
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Data replication from multiple Db2 ta... kishpra DB2 1 Mon Mar 27, 2017 9:58 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am


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