On Wed, 1 Aug 2007 16:45:30 +0530 Rashmi Nijaguni Mogali
<[EMAIL PROTECTED]> wrote:

:>I have a query regarding the following group move:

:>01 GRP1.
:>     05      N1           PIC S9(9) COMP-3 VALUE +0.
:>     05      N2           PIC S9(9) COMP-3 VALUE +0.

:>01 GRP2.
:>     05      N3           PIC S9(9) COMP-3 VALUE +123.

:>01 N4      PIC ZZZ,ZZZ,ZZ9.

:>PROCEDURE DIVISION.
:>    INITIALIZE GRP1.
:>    MOVE GRP2 TO GRP1.

All group moves are character.

:>    MOVE N2 TO N4.
:>    DISPLAY N4.

:>What value is displayed and why?

404,040,404 (unless the compiler generates real nutty code).

What do I win?

--
Binyamin Dissen <[EMAIL PROTECTED]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to