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

In numeric number aligment from right to left
truncation is in left side
the data type size of y is 9
so the value of y is 000123456

Is This Answer Correct ?    3 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between goback, stop run and exit program in cobol?

932


What are the different data types in cobol?

798


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

6686


Why would you use find and get rather than to obtain?

692


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720






Can a Search can be done on a table with or without Index?

804


How to print 10 to 1 if the input have only 10 digit number?

812


Write a program to explain size error.

677


What rules are to be followed while using the corresponding options?

641


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

735


How do you reference the following file formats from cobol programs?

695


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024


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?

701


What is cobol?

748


) How do u handle errors in BMS macro?

1429