can u give result for the fallowing example...
05 a pic 9(2)
05 b redifines a pic x(2).
move 'xy' to b.
display a,b.

Answer Posted / neha

a=00
b=xy
because redefines only defines the length of the variables ,not the particular value.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

682


Explain what you understand by passing by value.

694


What is difference between static and dynamic call in cobol?

777


i want a program using by if, evaluate , string, unstring, perform, occurs?

4052


For rewrite, why is it mandatory that file needs to be opened?

620






When is inspect verb is used in cobol?

673


How can you get the ksds file records into your cobol program?

642


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

643


State the various causes of s0c1, s0c5 and s0c7.

660


What is the compute verb? How is it used?

659


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2658


What are declaratives and what are their uses in cobol?

710


Write down the divisions of cobol program?

669


Which Search verb is equivalent to PERFORM…VARYING?

685


how do you reference the rrds file formats from cobol programs

796