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



Dennis

I've used other than *START when I know where I want to begin, as in processing output of spooled files - why read the header? Of course, you're stuck with version changes by IBM hurting you.

In the loop you describe, did you get the CPF0864? Will the RCLRSC work if you do?

Vern

At 04:58 PM 6/20/2003 -0400, you wrote:

Ummm... not unless they've changed the rules.

First off, OVRDBF POSITION(*START) has always seemed like a silly value to
me.  Where else would one expect it to begin processing?

Secondly, you don't have to use explicit open in order to effectuate your
OVRDBF command.

Finally, as I said, reclaiming resources and issuing another read will
cause the program to read FROM THE BEGINNING OF THE FILE.  (If I didn't say
it, I meant it.....)

The following snippet will read the FIRST three records in a file
repeatedly until your power company finds out you haven't paid your bill:

DCLF FILENAME

LOOP:
    RCVF
    RCVF
    RCVF
    RCLRSC LVL(*CALLER)
    GOTO LOOP

(I know - I just tried it. Works at V5R1 anyway.)

Now, if your program reaches EOF, you're done, as Al pointed out earlier.


Dennis



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.