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 / mahaveer
Here if u display YYY it will 123456
and if u display xxx it will 3456
Hope its clear
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
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
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between PIC 9.99 and PIC9v99?
What is perform what is varying?
What rules are to be followed while using the corresponding options?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What are various search techniques in cobol? Explain.
IF I mention stop run in CICS what happens?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What are literals?
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.
What is the difference between comp and comp-3?
What is the local-storage section?
Name the divisions, which are available in a cobol program?