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 / mallikarjun
if you use redefines in your statement the numeric
declaration will be over rided and stored as charechter, i
have testing this practically
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Which division and paragraphs are mandatory for a COBOL program?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How to remove 2 duplicate records and copy only one using job control language?
What is rmode(any) ?
What is the problem of ordered sequential files access?
Define static linking and dynamic linking.
How do you get the data to code the BMS macro?
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? Could we utilize a similar copybook?
Can we change the password using ALTER? anyone tried and changed?
What are declaratives and what are their uses in cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is inspect in cobol ?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..