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



I don't understand why this program has to have the file program defined.

I've never had to program-define source files before so since that was the
overwhelming recommendation I started to wonder.  I copied his code below,
compiled it, and ran it.  Worked file.  I used his OVRDBF command, and
substitutued &mllib for *LIBL, &mlfile for QRPGLESRC, and &mbr for TESTREAD.

Please enlighten me!

Thanks,

Phil


>
> I am trying to create a program to do this, but I am getting a (RNQ1011
> Undefined record type is found in file SOURCEPF)
>
> Here is my Programs
>
> First I do this ovrdbf,
> OVRDBF     FILE(SOURCEPF) TOFILE(&MLLIB/&MLFILE) +
>                          MBR(&MLNAME) LVLCHK(*NO)
> Then I call the rpgle
>
> FSOURCEPF  IF   E             DISK
>
> C                   READ      SOURCEPF
> C                   DOU       %EOF
> C                   IF        %SUBST(SRCDTA:8:5) = '/COPY'
>
> C                   ENDIF
> C
> C                   READ      SOURCEPF
> C                   ENDDO
>
>
>
> Any suggestion??
>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.