xyzzy
2007-08-17 19:01:28 UTC
Hi,
Is it possible in RPG to open a physical file twice, without resorting
to opening a logical file as well?
The situation is this:
An RPGLE program creates (via CRTDUPOBJ), opens and populates a
temporary keyed physical file in QTEMP. It then reads back through
this file validating each record. However, when certain record types
are found, the same file has to be checked for the existence of
dependent records, hence the need to open the file twice.
If I have to, I'll create a logical file in QTEMP (with the same keys
as the physical file) and use that, but I was hoping that I could just
open the physical file twice.
Thanks in advance for any suggestions.
Is it possible in RPG to open a physical file twice, without resorting
to opening a logical file as well?
The situation is this:
An RPGLE program creates (via CRTDUPOBJ), opens and populates a
temporary keyed physical file in QTEMP. It then reads back through
this file validating each record. However, when certain record types
are found, the same file has to be checked for the existence of
dependent records, hence the need to open the file twice.
If I have to, I'll create a logical file in QTEMP (with the same keys
as the physical file) and use that, but I was hoping that I could just
open the physical file twice.
Thanks in advance for any suggestions.