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 want Display WS-VARX and WS-VARN?

Answer Posted / reena

The Redefined clause cannot contain a Value Clause.
i.e. it should only be WS-VARN REDEFINES WS-VARX PIC 9(5).

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between PIC 9.99 and 9v99 in COBOL?

727


) how do u code after getting data?

1575


What is static and dynamic call in cobol?

586


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1831


Write the code to count the sum of n natural numbers.

696






what are decleratives in cobol?

1821


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

648


What are various search techniques in cobol? Explain.

639


What is the local-storage section?

672


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

705


) what is the difference between AID and HANDLE AID?

1627


Write a program that uses move corresponding.

664


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

699


How are the next sentence and continue different from each other?

753


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

704