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
Answers were Sorted based on User's Feedback
Answer / 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 |
What COBOL construct is the COBOL II EVALUATE meant to replace?
consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable
Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?
i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?
what is s013u000 for?
What is the linkage section?
What the difference is between continue and next sentence?
What is cobol?
How arrays can be defined in COBOL?
If I want to increase the Limit in GDG. What should I do?
Write a program to enter and display the names of students in a class using the occurs clause.
what happens if we dont close cursor in db2-cobol pgm?