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 / 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 |
Answer / gangadhara.m
numeric number alingment is right to left
truncation is done in left side
the datatype size of y is 6
so value of y is 123456
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / 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 |
Which is not true about evaluate statement
what is filler and what is use of filler
what is record label is empty or standard in file description of data division?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Explain how you can characterize tables in cobol?
when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?
In COBOL, what is the different between index and subscript?
0 Answers TryTechnicals Pvt Ltd,
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.
01 A pic 9(100) find record length of it
When and how can we use index & subscript ?
What is Pic 9v99 Indicates in COBOL?
0 Answers SwanSoft Technologies,
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error