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

Binary Arithmetic or Packed decimal


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

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Sat Jul 25, 2009 9:37 pm
Reply with quote

Hi ,

Please help me in the following doubts :

1) Which artihmetic operation is faster : Binary or Packed decimal
2) How to decide Which operation to choose for arithmetic .

Thanks
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Jul 25, 2009 10:46 pm
Reply with quote

Binary runs rings around packed-decimal but it does have its limitations.

Does this question pertain to Assembler or PL/I, because HLL's (not so much PL/I, but definitely COBOL) can treat binary different as opposed to native Assembler.

Bill
Back to top
View user's profile Send private message
Pankaj Shrivastava
Currently Banned

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Sat Jul 25, 2009 11:31 pm
Reply with quote

Thx Bill!

My question pertains to Assembler .
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Jul 26, 2009 1:38 am
Reply with quote

Hello,

Once the arithmetic is done, what will be done with the resulting values?
Back to top
View user's profile Send private message
Pankaj Shrivastava
Currently Banned

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Mon Jul 27, 2009 12:44 pm
Reply with quote

Hi ,

In the first artimetic i have to compute some value to determine a conditional execution of routine .

Second case , I have to calculate a new value and write/print in outfile file .


Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 27, 2009 6:52 pm
Reply with quote

Hello,

In that case i suspect the difference will not be visable/measurable.

Remember that in order to make a binary human-friendly, it will be converted to packed and then edited.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
No new posts Select a DB2 value in a specific deci... DB2 4
Search our Forums:

Back to Top