View Single Post

  #5 (permalink)  
Old 07-26-2007, 04:34 PM
eddie13 eddie13 is offline
Junior Member
 
Join Date: Jul 2007
Posts: 5
eddie13 is on a distinguished road
Ralp and dionyemah,

COBOL compilers do the conversions for you. Just define the packed field and the unpacked field, and move one to the other.

PIC S9(8)V99 COMP-3 would be moved to a PIC S9(8)V99. The actual storage of the comp-3 would be 6 bytes. comp-3 storage is more effecient for odd length fields. .. s9(9)v99 also uses 6 bytes. if you could see each byte for number 1234-, it would be [00][00][00][01][23][4B] a positive 1234 would be [00][00][00][01][23][4C] 12345 ... [00][00][00][12][34][5C]
Reply With Quote