error handling for output stream

danmerc

New Member
I am using the following statment and I am having difficulty handling an error if someone already has the file "sheet_output" open.

OUTPUT STREAM d-sheet TO VALUE(INPUT FRAME f-in sheet_output).

I get an error message that progress is unable to open the file and then the program hangs. Anyone have any suggestions?
 
Try using the FILE-INFO options to determine if the file is writeable, I am assuming your problem is that the file is locked by someone of a different group permission as the primary user. This will allow you to check first.

Use that command check in an iterative loop , perhaps showing a message "Waiting for filelock" or something, before starting your output to statement
 
Back
Top