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 / khbnaidu

Mallikarjun Ur answer is wrong because of WS-VARN is Numric
field & how will display the ABCDE result?

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the rules of the move verb?

701


how do you reference the fixed unblock file formats from cobol programs

705


What is a report item?

737


how can i see junk values in dclgen or in hostvariable of comp ?

2538


Write down the divisions of cobol program?

665






How do define dynamic array in cobol.

669


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 are the access modes of START statement?

716


What are all the divisions of a COBOL program?

660


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2104


what is the use of outrecord?

1768


What is the difference between comp and comp-3 usage?

674


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

769


i want a program using by if, evaluate , string, unstring, perform, occurs?

4046


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

818