• Subject: RE: Read PF File in CL Program (RCVF)
  • From: Buck Calabro <mcalabro@xxxxxxxxxxxx>
  • Date: Tue, 27 Jul 1999 10:48:31 -0400

Sunil,
There is no way to read another record in CL once you have reached EOF.
Here is a copy of the CL manual for the RCVF command "If the file has not
been opened by a previous RCVF, SNDRCVF, or SNDF command, it is opened by
this command.  If the file has been previously closed due to an end-of-file
condition on a previous RCVF command, an error occurs."  

Is there some reason you must use CL instead of RPG?  If you absolutely must
do it in CL, you will need to end the CL program and CALL it again.  This is
the only way to continue reading after you reach EOF.

Buck Calabro
Billing Concepts Albany, NY
mailto:mcalabro@commsoft.net

> -----Original Message-----
> From: Sunil Kumar 
> Sent: Tuesday, July 27, 1999 9:44 AM
> To:   RPG400-L@midrange.com
> Subject:      Re: Read PF File in CL Program (RCVF)
> 
> No this is not working . I tried this early .
> 
> 
> "Jeffrey Young" <jefyoung@worldnet.att.net> on 07/26/99 07:04:08 PM
> 
> In CL, the way you reset the file cursor after EOF is to use the POSDBF
> command.  I think the option is *START or *FIRST.
> 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* 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 ...

Follow-Ups:

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