Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Binary Arithmetic or Packed decimal

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Binary Arithmetic or Packed decimal
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Jul 25, 2009 10:46 pm    Post subject: Reply to: Binary Arithmetic or Packed decimal
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    Post subject:
Reply with quote

Thx Bill!

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

Site Director


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

PostPosted: Sun Jul 26, 2009 1:38 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Jul 27, 2009 6:52 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts resume binary ftp in z/os meykh2014 All Other Mainframe Topics 6 Sun Jan 22, 2017 10:01 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us