• Subject: Re: Problem in OPNQRYF
  • From: "James W. Kilgore" <qappdsn@xxxxxxx>
  • Date: Wed, 28 Jul 1999 19:36:33 -0700
  • Organization: Progressive Data Systems, Inc.



Vini Kolathur wrote:. So

>      does that mean that IBM has to fix up the CPYFRMQRYF to clsoe the file
>      after finishing it's work.
>
>

No.

It means -you-  processed the whole file with the CPYFRMQRYF and -you- need to
reposition the file cursor.

The same thing would happen in RPG if you opened a file, read it to EOF,  then 
when
you tried to read it some more received nothing.  Go figure ;)

If you want to start over again at the beginning of what the OPNQRYF creates, 
try a
SETLL *LOVAL at the beginning of your RPG program.  If you are processing the 
file
as a primary file, you will need to position the file cursor before you call 
your
RPG program.

All in all, it's working as designed.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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