01 a pic s9(5) value '-12345' how it will be stored
Answer Posted / gopal chand
01 a pic s9(5) value '-12345' how it will be stored
It will be stored :
1234u
In data files Negative Values are Stored as per the
following manner
0-p 1-q 2-r 3-s 4-t 5-u 6-v 7-w 8-x 9-y
The Last Digit of the No. is stored like this in the
following example.
Example: 01 a pic s9(4)v99
move -3456.23 to a.
display a.
Output is : 34562s
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Give some examples of command terminators?
What is the difference between binary search and sequential search?
What is the difference between Call and a Link?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Difference between cobol and cobol-ii?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What are the various section in data division and briefly explain them.
How you can read the file from bottom?
Which mode is used to operate the sequential file?
how do you reference the printer file formats from cobol programs
What is report-item in COBOL?
how to convert the recors form vsam file to db2 table tru file aid