0
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.
如果輸入文件中的數據錯誤,我想在日誌文件中寫入錯誤。例如,如果在custnum字段中有一個字符而不是數字。如何寫入日誌文件?