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
What is static and dynamic call in cobol?
Write the code implementing the perform … varying.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
HOw can I get the negative sign while deduct high value from low value
Write down the divisions of cobol program?
What is the difference between PIC 9.99 and PIC9v99?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
how to convert the recors form vsam file to db2 table tru file aid
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How do you define a variable of comp-1 and comp-2?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Write a cobol program making use of the redefine clause.
Define cobol?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Explain how you can characterize tables in cobol?