× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Fabrizio,

I can't explain that, but what if you made the array based on a pointer and
set the pointer to the address of the MODS?  Then you wouldn't have to do
those MOVE/EVAL loops at all.

hth,
Peter Dow
Dow Software Services, Inc.
909 793-9050 voice
909 793-4480 fax

----- Original Message -----
From: "Gurrieri Fabrizio" <fabrizio.gurrieri@bartolini.it>
To: <rpg400-l@midrange.com>
Sent: Wednesday, June 05, 2002 2:33 AM
Subject: EVAL strange behavior... (Barbara con you explain it)


> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> Today I've tested a pgm that order an OCCUR DS trought an array and I see
that the pgm have a strange behavior on a EVAL instructioin.
> The pgm work are like that:
>
>
> D SKCRER          S                   DIM(500) LIKE(CRER)
>
> D CRER            DS                  OCCURS(500) INZ
> D  REX                    1      6
> D  REC                    7    114P 3
> D                                     DIM(12)
> D                                     PACKEVEN
> D  REP                  115    222P 3
> D                                     DIM(12)
> D                                     PACKEVEN
>
>
> C     ORDCRER       BEGSR
> C*
> C                   CLEAR                   SKCRER
> C*
> C* PASSO L'OCCUR NELLA SCHIERA
> C     1             DO        500           YY
> C     YY            OCCUR     CRER
> C                   EVAL      SKCRER(YY) = CRER
<====
> C                   ENDDO
> C*
> C* ORDINO LA SCHIERA
> C                   SORTA     SKCRER
> C*
> C* PASSO LA SCHIERA NELL'OCCUR
> C     1             DO        500           YY
> C     YY            OCCUR     CRER
> C                   EVAL      CRER = SKCRER(YY)
> C                   ENDDO
> C*
> C                   ENDSR
>
>
> If I replace the C spec "<====" with the follow spec all works fine!!!
>
> C                   MOVEL     CRER          SKCRER(YY)
<====
>
> Has someone any ideas???
>
> Thanks a lot
>
>
>
> Fabrizio Gurrieri - BARTOLINI SPA
> Via E.Mattei  42 - 40138 BOLOGNA (Italy)
> Tel:+39 051 6015593 - Fax:+39 051 530365
> E-Mail: Fabrizio.Gurrieri@bartolini.it
> Internet: http://www.bartolini.it <http://www.bartolini.it/>
>
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> or email: RPG400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
>




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.