I am trying to write an error file into UNIX directory using 'OPEN DATASET ERRFILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT'. But unfortunately i am getting a dump as it is giving the subrc 8 and dumping with CX_SY_FILE_OPEN_MODE.
The path looks like /sap/DE1/batch/data/SCM_YM/partfiles/HGMEH011.20071001150344
Is there any special command or way to write the file into UNIX?
Quick response would be of great help.