QuikJob - packed to binary



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

QuikJob - packed to binary

Postby kenken1+1 » Thu Dec 22, 2016 11:19 am

I was trying to multiply a 2-bytes packed value number(INF142-143) with 1 and move it to a 2-bytes binary value area(WST6-7) and the result I got is wrong (see the picture attached).
However, if I move the product to a 2-bytes packed value area(WST8-9), I'll get the correct value.
Can anyone explain why is it so?

Capture.PNG
You do not have the required permissions to view the files attached to this post.
kenken1+1
 
Posts: 1
Joined: Tue Nov 08, 2016 7:15 am
Has thanked: 1 time
Been thanked: 0 time

Re: QuikJob - packed to binary

 

Re: QuikJob - packed to binary

Postby prino » Thu Dec 22, 2016 1:37 pm

kenken1+1 wrote:I was trying to multiply a 2-bytes packed value number(INF142-143) with 1 and move it to a 2-bytes binary value area(WST6-7) and the result I got is wrong (see the picture attached).
However, if I move the product to a 2-bytes packed value area(WST8-9), I'll get the correct value.
Can anyone explain why is it so?

It's because ISPF and TSO have absolutely no understanding of packed values!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

Re: QuikJob - packed to binary

Postby NicC » Thu Dec 22, 2016 4:04 pm

Originally posted under TSO & ISPF - hence Prino's post. There is no "Other Programming Languages" section so moved to "All other mainframe topics".
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post