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
Discuss about changing dataset name in proc.
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Name the sections present in data division.
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What are the rules of the move verb?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How do we get current date from system with century in COBOL?
how do you reference the ksds vsam file formats from cobol programs
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 inspect in cobol ?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What rules are to be followed while using the corresponding options?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?