export question
Roger Cornelius
rac at custom-mobility.com
Sat Oct 30 14:38:18 PDT 2004
On Fri Oct 29 17:34, Kenneth Brody wrote:
> Roger Cornelius wrote:
> >
> > dreport v 4.8.10D4 on SCO OSR5.0.7
> >
> > Is there a way to export more than one record for each filepro record
> > selected in output processing? The manual says no.
> [...]
>
> Yes. Re-execute the export, usually in a subroutine. Where does the
> manual say you can't do that? (I assume you are referring to the fact
> that you can't have more than one import/export with the same name?)
Yes, that is what I was referring to. I've done some experimenting and
have it working. Here's a stripped down version:
:54 eq "Y" :gosub DO_RX:
:58 eq "Y" :gosub DO_TX:
::end:
DO_RX:::
::exp(1) = @rn:
::exp(2) = 53:
::exp(3) = "RX":
::gosub EXPORT:
::return:
DO_TX:::
::exp(1) = @rn:
::exp(2) = 57:
::exp(3) = "TX":
::gosub EXPORT:
::return:
EXPORT:::
::export WORD exp=(of):
::return:
But I also noticed that if I add a couple of lines just before ::end:, I
get a third record written, even though I don't explicitly call EXPORT
again. E.g.:
:54 eq "Y" :gosub DO_RX:
:58 eq "Y" :gosub DO_TX:
::imp(1) = @rn:
::imp(2) = 59:
::imp(3) = "ZX":
::end:
DO_RX:::
::exp(1) = @rn:
::exp(2) = 53:
::exp(3) = "RX":
::gosub EXPORT:
::return:
DO_TX:::
::exp(1) = @rn:
::exp(2) = 57:
::exp(3) = "TX":
::gosub EXPORT:
::return:
EXPORT:::
::export WORD exp=(of):
::return:
Does end of processing on a record do an implicit write of the export
like a regular write does? Does this only occur if the export's fields
have been modified since the export was last written?
Does the "write" statement do anything when dealing with an export file?
In my initial message I used "write" as an example, and Jeff used it in
his example, but my code doesn't use it and it works.
--
Roger Cornelius rac at custom-mobility.com
More information about the Filepro-list
mailing list