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


Please Help Members By Posting Answers For Below Questions

Write down the divisions of cobol program?

663


how do you reference the variable unblock file formats from cobol programs

735


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

987


In COBOL, what is the different between index and subscript?

751


Why would you use find and get rather than to obtain?

677






how do you define single dimensional array and multidimensional array in your cobol?

665


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

698


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

704


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

812


How are the next sentence and continue different from each other?

755


A table has two indexes defined. Which one will be used by the SEARCH?

750


How do define dynamic array in cobol.

665


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 ?

1863


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1920


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?

885