Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Infoirmix- appending output to an existing file

SOLVED
Go to solution
Krista A
Occasional Advisor

Infoirmix- appending output to an existing file

I'm trying to send output to an existing file in an Informix program using a cursor and a report... I know how to create a new file each time the program runs, but not to output to an already existing one... How would I do that?
4 REPLIES
Peter Godron
Honored Contributor
Krista A
Occasional Advisor

Re: Infoirmix- appending output to an existing file

Thanks, Peter,
But what I'm actually trying to do is in the code itself:

start report report3 to "output.out"
foreach datacurs into rpt_rec1.*
output to report report3(rpt_rec1.*)
end foreach
finish report report3

where rept_rec1 is defined in the actual report. I want the program to append to "output.out" each time it runs, instead of overwriting it with the new output each time it runs.
Peter Godron
Honored Contributor
Solution

Re: Infoirmix- appending output to an existing file

Sorry Krista,
misunderstood.

Could you please try:

START REPORT report3 TO PIPE "cat >> output.out"

If you are happy with the answer:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Krista A
Occasional Advisor

Re: Infoirmix- appending output to an existing file

Thank you, Peter. Very helpful!