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

allways value & move display from rigt to left or accept
lalue left to riht ans 3456

Is This Answer Correct ?    4 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a report item?

741


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


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.

5065


How you can characterize tables in cobol?

720


What is cobol?

748






What is perform what is varying?

711


What is the difference between binary search and sequential search?

643


What is comp-1 and comp-2?

765


what happens if parmparameter passes zero bytes to the program

1667


In COBOL programming, what is PERFORM? What is VARYING?

672


Define static linking and dynamic linking.

669


Explain what you understand by passing by value.

703


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

2763


What is the Purpose of Pointer in the string?

643


What are all the divisions of a COBOL program?

665