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
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
How do you differentiate between cobol and cobol-ii?
What is the difference between PIC 9.99 and 9v99 in COBOL?
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.
How you can read the file from bottom?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is length is cobol?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the Purpose of Pointer in the string?
What is perform what is varying?
) How do u handle errors in BMS macro?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
how to access the file from prodution from changeman tool and to submit a file to production
How to remove 2 duplicate records and copy only one using job control language?