IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Data structure of fixed decimal


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rainye

New User


Joined: 11 Jul 2006
Posts: 8

PostPosted: Sun Aug 06, 2006 10:53 pm
Reply with quote

I am required to convert a PLI program to a cobol program. As I am new to PLI, I don't know what the data structure of the fixed decimal is in PLI.

For example, a "dec fixed (7,0) " data occupys 4 digits, if the value is "123456.0", what's the hex value for this data? Is it a Hex'00123456'? Or a Hex'0123456C', the same as the comp-3 in Cobol?

Thanks!
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Mon Aug 14, 2006 3:14 pm
Reply with quote

Hex'0123456C', the same as the comp-3 in Cobol.
Back to top
View user's profile Send private message
rainye

New User


Joined: 11 Jul 2006
Posts: 8

PostPosted: Mon Aug 14, 2006 8:39 pm
Reply with quote

Thanks very much. And someone just told me that I should never forget the sign.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Mon Aug 14, 2006 8:41 pm
Reply with quote

C for positive number, D for negative ( also E ). F for unsigned.
Back to top
View user's profile Send private message
rainye

New User


Joined: 11 Jul 2006
Posts: 8

PostPosted: Mon Aug 14, 2006 8:42 pm
Reply with quote

: ) Thanks very much !
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top