What does the IS NUMERIC clause establish ?

Answer Posted / smijo

incase u redefine X(9) to 9(9).. and if value of x(9) is 'AAAAA' , then if you display the redefined numeric variable it will also show 'AAAAA'. so to check the numeric variable actually contains numeric data like 9999 you can use IS NUMERIC.

if X(9) contains 999999999 then ur if variable is numeric will be true

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define a variable of comp-1 and comp-2?

707


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?

1808


Write a cobol program making use of the redefine clause.

739


How do we get current date from system with century in COBOL?

809


What is perform what is varying?

711






How do define dynamic array in cobol.

675


how do you define single dimensional array and multidimensional array in your cobol?

683


A table has two indexes defined. Which one will be used by the SEARCH?

759


For rewrite, why is it mandatory that file needs to be opened?

623


What is a report item?

741


what is difference between cobol and cobol/400

21572


) How do u handle errors in BMS macro?

1431


Explain what you understand by passing by value.

706


Define static linking and dynamic linking.

669


What is difference between static and dynamic call in cobol?

781