|
You can't read a file twice in one run of a CL no mater what you do.
My work around to this is to create 2 CL programs. The first program
creates the file & calls the second. The second program processes the file
to the end & returns to the first. The first one then refreshes the data
{optional} in the file & calls the second again.
\Vincent
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Titus Kruse
Sent: January 25, 2005 9:44 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Reading file in CL twice
Hi!
In my CL program, I have a file declared with DCLF. The file was read by
RCVF. After end of file has been reached, I want to read the file again. I
have tried to open the file again with OPNDBF, but the file won't be read
again. Does anybody has an idea for this old CL progamming technics?
Titus
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.