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?
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?