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
How do u write test cases?
What do you understand by psb and acb?
How are the next sentence and continue different from each other?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is amode(24)?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Write down the divisions of cobol program?
Which Search verb is equivalent to PERFORM…VARYING?
What is cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
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
how can i see junk values in dclgen or in hostvariable of comp ?
Which division and paragraphs are mandatory for a COBOL program?
Write some characteristics of cobol as means of business language.