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
How do you differentiate between cobol and cobol-ii?
how do you reference the ksds vsam file formats from cobol programs
How you can characterize tables in cobol?
What are literals?
What is length is cobol?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is difference between static and dynamic call in cobol?
Write the code implementing the perform … varying.
Whats the difference between search & search ALL?
A table has two indexes defined. Which one will be used by the SEARCH?
What is inspect in cobol ?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is a report item?
what is search and searchall?what is the diffrence between them?give an best example?
Name some of the examples of COBOl 11?