01 xxx pic 9(4).
01 yyy pic 9(6).

move 123456 into yyy.
move yyy to xxx.

display yyy.

what would be the value of yyy

Answer Posted / jaganmohanreddy

HAI ALL U R WRITING DIFFERENT ANSWERS BUT THEY ARE ASKING
FOR YYY VALUE IT WONT BE CHANGED IT HAS VALUE OF 123456
BECAUSE ITS PIC CLAUSE IS 9(6) OK THEN DISPLAY YYY IT WIL
DISPLAY 123456 OK ANY DOUBTS

Is This Answer Correct ?    55 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to convert the recors form vsam file to db2 table tru file aid

2853


Which Search verb is equivalent to PERFORM…VARYING?

777


What are the different open modes available in cobol?

822


What is the problem of ordered sequential files access?

811


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

4950






What is amode(24)?

770


Can we redefine the field of x(200) to less than 200?

955


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

806


What is the Purpose of POINTER Phrase in STRING command in COBOL?

845


What is report-item in COBOL?

796


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

897


What is rmode(any) ?

776


What is the difference between Call and a Link?

794


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

874


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2061