× 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.



Please Humor me! ..  but could something like this be used?

D FileMbrListDs   DS                  occurs(300)
D  FileName                     10a
D  MbrList                      10a   dim(50)


I don't know if this will even work!



--- bmorris@ca.ibm.com wrote:
>
> >From: rob@dekko.com
> >Date: Wed, 12 Dec 2001 09:52:04 -0500
> >
> >     D FileMbrListDs   DS
> >RNF0501E Length of character item FILEMBR... exceeds 65535; length
> defaults
> >to 65535.
> >     D  eFileMbrList                  5i 0
> >     D  aFileMbr                    +10    dim(300) like(MbrListDs)
> >     D   File                        10a   overlay(aFileMbr)
> >     D   MbrListParm                       overlay(aFileMbr:*next)
> >     D                                      like(MbrListDs)
> >     D MbrListDs       DS
> >     D  eMbrList                      5i 0
> >     D  MbrList                      10a   dim(50)
> >...
> >
> >Any suggestions on the workaround for the RNF0501E message?
>
> Rob, this is untested, but I think something like this should work.
>
>      D FileMbrListDs   DS
>      D  eFileMbrList                  5i 0
>      D  firstElem                     1
>
>      D MbrListDs       DS                  based(pMbrList)
>      D  eMbrList                      5i 0
>      D  MbrList                      10a   dim(50)
>
>      C          for      elem = 1 to eFileMbrList
>      C          eval     pMbrList = %addr(firstElem)
>      C                            + %size(MbrListDs) * (elem - 1)
>      C ... process eMbrList and MbrList
>      C          endfor
>
> I can't remember if the next MbrListDS follows immediately after eMbrList
> entries.  If so, you'll have keep a running pointer, and set it according
> to the size of the previous entry.  If that's the case, be careful not
> to set it after processing the last element, or you run the risk of the
> occasional MCH0601.
>
> Barbara Morris


______________________________________________________
Send your holiday cheer with http://greetings.yahoo.ca


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.