For Programmers: Free Programming Magazines  


Home > Archive > Cobol > May 2007 > Re: Question on Cobol Move statement - mixed move x to zzz9.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Question on Cobol Move statement - mixed move x to zzz9.
Clark F Morris

2007-05-21, 9:55 pm

On Mon, 21 May 2007 16:32:56 -0400, Michael Schey
<mscheynjSPAMBLOCK@yahoo.com> wrote:

>On Mon, 21 May 2007 14:29:58 -0600, Howard Brazee <howard@brazee.net>
>wrote:
>
>
>Yup. I'm not stupid and work on many platforms. Shit, I used to
>teach Cobol (a long time ago) and understand how moves work. The
>sending field is moving the data left to right, one byte at a time. I
>just can't explain why the result is coming out the way it is.
>Michael


Depending on the platform and possible low-order zone, the blanks are
treated as zeros. I could see this causing a data exception (S0C7) on
an IBM z series unless the PACK was followed by an OR IMMEDIATE on the
sign position because the packed value of the field would be
x'030004'. Other platforms would have their own peculiarities.
>(http://michaelschey.blogspot.com/)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com