IMPORT, EXPORT in Progress

nate100

Member
For the input, I am trying to import from a flat file (outputlst).
For the output I am then trying to export the results to a flat file.

When I try the following, I only get one record imported although the input has multiple records:

def var srctotal as dec.
def var tgttotal as dec.
def var sonbr as char.
input from inputlist .
REPEAT:
import sonbr.
RUN xxtotval.p(INPUT sonbr, OUTPUT tgttotal).
output to outputlst.
export delimiter "~~" sonbr tgttotal.
output close.
END.

Am I not using the import, export correctly?
 
Since the outputfile is everytime the same I think you want the output to statement outside the repeat block.

Or put append to the output statement:

output to blabla append.

Casper.
 
Back
Top