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
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is the problem of ordered sequential files access?
What is Pic 9v99 Indicates in COBOL?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What is the utilization of copybook in cobol?
What is the difference between Call and a Link?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How do u write test cases?
Explain about different table spaces.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what is amode(24), amode(31), rmode(24) and rmode(any)?
How do we get current date from system with century in COBOL?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is the difference between perform … with test after and perform … with test before?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech