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 are decleratives in cobol?

2011


What is the difference between structured cobol programming and object alternativelyiented cobol?

998


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

879


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3000


what is the use of outrecord?

1972


How do you get the data to code the BMS macro?

1712


How do you differentiate between cobol and cobol-ii?

869


Describe the cobol database components?

905


Difference between cobol and cobol-ii?

953


What is the difference between comp and comp-3 usage?

879


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5434


What is the use of intialize verb?

986


Write a cobol program making use of the redefine clause.

949


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2217


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1183