packed decimal



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

packed decimal

Postby Deepak kumar25 » Sun Apr 22, 2012 4:57 pm

as we know packed decimal store data in half byte and sign in half byte.
but how the sign is stored can any one explain me.
like
+1234 how it is stored like 01 23 4c
explain me how they internally represented in memory........




thanks in advance





Deepak kumar
Deepak kumar25
 
Posts: 34
Joined: Mon Jan 10, 2011 10:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: packed decimal

 

Re: packed decimal

Postby Robert Sample » Sun Apr 22, 2012 5:33 pm

RTFM. Here's a link to the manual so you can read it: http://www-01.ibm.com/software/awdtools/cobol/zos/library/

As this is essentially a duplicate of your other post, I'm locking this one too.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post