View previous topic :: View next topic
|
Author |
Message |
bhavishya_bhandari
New User
Joined: 30 May 2006 Posts: 7
|
|
|
|
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 |
|
|
kondakonda
New User
Joined: 20 Mar 2006 Posts: 34
|
|
|
|
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 |
|
|
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
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 |
|
|
bhavishya_bhandari
New User
Joined: 30 May 2006 Posts: 7
|
|
|
|
yeah ... dat was gud one ...
thnx jai ... |
|
Back to top |
|
|
|