01 var1 pic x(10)
01 var2 redefines var1 pic 9(10).

then in procedure division

move 'abcde' to var1 then waht is the value of var1 and var2

Answer Posted / ashok

in x1 & x2 is haveing same value "abcd" and also memory
location also is same. thats why if u chang any values of
these atomatically chang both values.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

833


How do you differentiate between cobol and cobol-ii?

753


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

849


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2116


How you can read the file from bottom?

749






How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

761


What is length is cobol?

749


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

774


What is the Purpose of Pointer in the string?

721


What is perform what is varying?

804


) How do u handle errors in BMS macro?

1514


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

834


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

797


how to access the file from prodution from changeman tool and to submit a file to production

6887


How to remove 2 duplicate records and copy only one using job control language?

873