How is sign stored in Packed Decimal fields and Zoned
Decimal fields?
Answer Posted / pradeep
For a Packed decimal:
(a) positive value is stored as,
0653
000F
Here, the value 'F' specifies its a +ve value. Also, 'C' is
also used to store +ve values.
(b) negative value is stored with 'D' instead of 'F'
Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
Write down the divisions of cobol program?
how do you reference the variable unblock file formats from cobol programs
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
In COBOL, what is the different between index and subscript?
Why would you use find and get rather than to obtain?
how do you define single dimensional array and multidimensional array in your cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How are the next sentence and continue different from each other?
A table has two indexes defined. Which one will be used by the SEARCH?
How do define dynamic array in cobol.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?