|
I think what you want is the POSDBF command to reposition the file
pointer.
- Steve
---------------------------------------------
message: 5
date: Fri, 22 Aug 2008 14:36:59 -0500
from: "David Turnidge" <daveturnidge@xxxxxxxxx>
subject: CLP - Open file, read to end, close file, reopen, still at
end...
Shouldn't be this hard...
I am writing a CLP to read a file resulting from a DSPOBD for a data
library.
I want to read the file through once to create all my physicals.
(CRTDUPOBJ
- Data(*NO).
When I get to EOF, I want to take whatever steps are necessary to start
at
the top of the file to read all the objects that are NOT Physical files,
and
create them.
Right now, when I get to the EOF, I am closing (CLOF) the file, and
reopening it... When I do my next read, it says that the file is still
at
EOF and I drop out of the program.
What am I missing?
TIA,
Dave
As an Amazon Associate we earn from qualifying purchases.
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.