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 to convert the recors form vsam file to db2 table tru file aid
Which Search verb is equivalent to PERFORM…VARYING?
What are the different open modes available in cobol?
What is the problem of ordered sequential files access?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is amode(24)?
Can we redefine the field of x(200) to less than 200?
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?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What is report-item in COBOL?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is rmode(any) ?
What is the difference between Call and a Link?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?