INPUT FROM Error trapping

danmerc

New Member
I am trying to use the INPUT FROM Statement to read from a CSV file. How can I trap the (293) error that happens when the file does not exist? I am working in Progress 9.1C in a windows environment.
 
Hi Danmerc,

I always do something like:
Code:
IF search(c_file) = ?
then do:
	message 'no file!' view-as alert-box.
end.
else do:
	 INPUT STREAM s_data FROM VALUE(c_file).
	 etc.
 
end.

Casper.
 
Back
Top