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
Have you used comp and comp-3 in your project? And how?
how do you reference the ksds vsam file formats from cobol programs
In COBOL programming, what is PERFORM? What is VARYING?
What is amode(31)
Why occurs cannot be used in 01 level in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is an in line perform? When would you use it? Anything else you wish to say about it.
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What guidelines should be followed to write a structured cobol prgm?
What are the different types of condition in cobol and write their forms.
For rewrite, why is it mandatory that file needs to be opened?
Name the sections present in data division.
What is the use of intialize verb?
What are the rules of the move verb?