How To Separate The Numerics From An Alphanumric Data Item
Which Contains Both Alphabates And Numerics ?

Answer Posted / kingmanish

Use the COBOL keyword ISNUMERIC.

This would be evaluated to true if the value stored is
numeric and you can separate the numeric values

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is amode(31)

716


State the various causes of s0c1, s0c5 and s0c7.

656


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1798


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5673


Why would you use find and get rather than to obtain?

679






What is link edit in cobol?

748


what happens if parmparameter passes zero bytes to the program

1659


How do define dynamic array in cobol.

669


What type of SDLC u followed? Why?

1516


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

679


Write the code to count the sum of n natural numbers.

697


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2052


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

710


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8637


What is the difference between PIC 9.99 and 9v99 in COBOL?

729