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
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What are the access modes of START statement?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Write a cobol program making use of the redefine clause.
What is the use of intialize verb?
Can a Search can be done on a table with or without Index?
For rewrite, why is it mandatory that file needs to be opened?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
what is the difference between COBOL2 AND COBOL390?
What is the problem of ordered sequential files access?
Write down the divisions of cobol program?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Explain about different table spaces.