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
How do you define a variable of comp-1 and comp-2?
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?
Write a cobol program making use of the redefine clause.
How do we get current date from system with century in COBOL?
What is perform what is varying?
How do define dynamic array in cobol.
how do you define single dimensional array and multidimensional array in your cobol?
A table has two indexes defined. Which one will be used by the SEARCH?
For rewrite, why is it mandatory that file needs to be opened?
What is a report item?
what is difference between cobol and cobol/400
) How do u handle errors in BMS macro?
Explain what you understand by passing by value.
Define static linking and dynamic linking.
What is difference between static and dynamic call in cobol?