What will happen if a variable is declared as below..
Explain with an example? Working storage section:-

01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.

What will happen I am going to Display the WS-VARX and WS-
VARN?

Answer Posted / siva

WS-VARX = 12345FGHIJ
WS-VARN = 12345

Is This Answer Correct ?    1 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different rules of SORT operation?

698


What is the compute verb? How is it used?

659


What is link edit in cobol?

767


How to know whether the module is dynamical or statistical?

652


What is length is cobol?

650






Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


What is amode(31)

721


) what is the difference between AID and HANDLE AID?

1634


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

672


Write a program that uses move corresponding.

673


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?

1804


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

659


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3715


What is an in line perform? When would you use it? Anything else you wish to say about it.

643


What is difference between static and dynamic call in cobol?

777