[Stackoverflow] [Progress OpenEdge ABL] how to find if the excel sheet is opened on system using progress 4GL?

Status
Not open for further replies.
T

Thiru

Guest
I am new to progress 4GL. I have exported some data as a CSV file format using progress 4GL. The issue I am facing is If I run the program for the first time then CSV file is created but if I run another program by keeping CSV file open on my machine then the data is not written to the same CSV file. Instead it is giving error. I want to use one CSV(sample.csv) file for storing the data from multiple programs.

If it is possible to write the data by keeping CSV file open on my machine then tell me the way or else I want to find that if the file is open(sample.csv) then I need to give a message to a user that "pls close CSV file".

The program I tried from my side. The error I got is attached.

OUTPUT TO "C:\Users\ast\Pictures\Saved Pictures\sample.csv".

EXPORT DELIMITER ";" "CustNum" "Name".
FOR EACH customer NO-LOCK:
EXPORT DELIMITER ";" Cust-Num Name.
END.
OUTPUT CLOSE.


enter image description here

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