OUTPUT TO raises error (98), errno=2 for permission issue
The OUTPUT TO statement without the APPEND option correctly raises error (98) when creating a file using in a directory where the user does not have write permission. However, errno=2 (ERROR_FILE_NOT_FOUND) is displayed instead of errno=5 (ERROR_ACCESS_DENIED).