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
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What are the different rules of SORT operation?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is an in line perform? When would you use it? Anything else you wish to say about it.
Write down the divisions of cobol program?
How to remove 2 duplicate records and copy only one using job control language?
Explain what you understand by passing by value.
How do you get the data to code the BMS macro?
What are the different rules for performing sort operation?
What is perform what is varying?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
Why occurs cannot be used in 01 level in COBOL?
Write the code to count the sum of n natural numbers.
Name the sections present in data division.