How to write to a log file?

Status
Not open for further replies.
U

user3715001

Guest
input from cust.txt.
define temp-table tt-cust field name like customer.name
field custnum like customer.custnum.
repeat:
create ttcust.
import delimiter "," tt-cust.name tt-cust.custnum.
end.
input close.
for each customer where customer.country = "usa" exclusive-lock:
assign customer.name = tt-cust.name
customer.custnum = tt-cust.custnum.
end.


I want to write errors in a log-file if the data in a input file is wrong. For instance if there is a character and not a number in the custnum field.

Continue reading...
 
Status
Not open for further replies.
Top