What will happen if a variable is declared as below..
Explain with an example?

Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).

Answer Posted / ankur

after redefining we can also move alphabetic to numeric or
numeric to alphabetic field . mathematical operation is
different . if we go for that it will give s0c7.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

654


What is difference between static and dynamic call in cobol?

772


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734


what is the use of outrecord?

1768


Write a program to explain size error.

669






Write a program to enter and display the names of students in a class using the occurs clause.

647


Explain how you can characterize tables in cobol?

636


How can you get the ksds file records into your cobol program?

639


Write some characteristics of cobol as means of business language.

614


Which division and paragraphs are mandatory for a COBOL program?

707


What are declaratives and what are their uses in cobol?

706


What are the different rules for performing sort operation?

757


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

714


) How do u handle errors in BMS macro?

1427


Write the code implementing the perform … varying.

639