Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hexadecimal format

Status
Not open for further replies.

mani05

Programmer
Apr 16, 2009
13
IN
what is z900 hexadecimal format.how comp-2 is represented by z900 hexadecimal format.
 
Hi Mani,

What is a z900 hex format? Can you provide a link where it's discussed?

Thanx and

Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
 
Hexadecimal (hex) is a storage format. Comp-2 is the COBOL definition of a long precision (double word; 8 bytes) floating point field. They are completely different. You shouldn't have to concern yourself with the hex representation of the data.
 
If you are working on an IBM M/F system modify and re-compile your pgm by including a non-zero VALUE for the COMP-2 field and making the first 2 PD stmts:
Code:
DISPLY '>' yr-comp2-var-name '<'
STOP RUN

Use SDSF to look at your execution SYSOUT; turn HEX ON; and it will give you an idea of how the data is stored in the field. Although, as tcsbiz sez, you don't have to be concerned w/the data representation.


Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top