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

we cannot move yyy to xxx ....see the data length

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you define single dimensional array and multidimensional array in your cobol?

667


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

800


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

729


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2726


Can you please let me know the centre name of INS certification in Kolkata.

1713






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

1925


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


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.

5051


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2099


Are you comfortable in cobol or jcl?

639


What is the difference between comp and comp-3 usage?

672


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

690


How arrays can be defined in COBOL?

661


What is static and dynamic call in cobol?

590


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

928