• Subject: Re: Problem in OPNQRYF
  • From: John Hall <jhall@xxxxxxxxxxx>
  • Date: Fri, 30 Jul 1999 14:26:37 -0400



Vini Kolathur wrote:
> 
> 
> 
> James,
>     The same thing would not happen if i process the file in me RPG because of
> the simple reason that i would have closed the file in my RPG. You can try it
> out by putting the CPYFRMQRYF after calling the RPG.
>          Many people have suggested putting a *LOVAL SETLL in the RPG. This
> would only crash the program because the *LOVAL SETLL will try to position it 
>to
> the first record. This necessarily could not be the first record in the
> selection criterion.
>         I feel that IBM should fix up the CPYFRMQRYF to reposition the file
> pointer to the first record after it has done it's piece of work.
> 

That would break existing programs.  What is so hard about doing a
POSDBF if you want to restart at the beginning of the file after
processing it?  Also what if I wanted to copy the first 100 records to
one file and the next to another ?  Right now I can do this.

John Hall
Home Sales Co.
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---END



This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].