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 / merguadithya111

var1 is abcde

var2 is also abcde

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

982


Which Search verb is equivalent to PERFORM…VARYING?

777


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

729


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

833


what is amode(24), amode(31), rmode(24) and rmode(any)?

789






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

774


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

830


example for sub strings ? and refernce modifications whit output pls

1947


What is Pic 9v99 Indicates in COBOL?

837


What are different data types in cobol?

790


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5230


What kind of error is trapped by on size error option?

832


What is the difference between next sentence and continue in cobol programing language?

822


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8962


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2034