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

EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


How to remove 2 duplicate records and copy only one using job control language?

755


Difference between array and sub-script ?

1169


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


What is the Purpose of Pointer in the string?

643






What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780


What are 77 levels used for?

661


what happens if parmparameter passes zero bytes to the program

1667


) how do u code after getting data?

1582


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1773


how to move the records from file to array table. give with code example

2223


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

686


What is the usage of comp fields in cobol?

660


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

744


What is a report item?

741