‎2008 Apr 17 12:06 PM
Hi Gurus,
I am trying to write into an file in application server using the Open dataset command but its not workng i am getting sy-subrc = 8. can anyone tell me how to resolve it?
this is my command .
OPEN DATASET file_name IN TEXT MODE FOR OUTPUT MESSAGE msg1 encoding utf-8
when i check for sy-subrc its giving me value '8' .
Waiting for replies
Ravi
‎2008 Apr 17 12:16 PM
8 means 'Operating system could not open file'
U are not authorized to open the file/file not present ..
‎2008 Apr 17 12:16 PM
8 means 'Operating system could not open file'
U are not authorized to open the file/file not present ..
‎2008 Apr 17 12:29 PM
sy-subrc = 8 >>> means cant open the file ....check file location and see if the file actualli is there..
regds
‎2008 Apr 17 12:37 PM
Hi Ravi,
sy-subrc value 8 means either file is not exist or you are not not authorized to view or open this file please make sure with t code al11
is file exist on application server..
Amit.
‎2008 May 08 10:26 AM
Please check if the directory in which you are trying to save the file is valid?
‎2008 Jul 06 6:50 AM
‎2014 May 05 3:45 PM
Hi ALL,
I was facing the same issue.
Then I converted parameter like this.
PARAMETERS: filename(200) TYPE c DEFAULT '/tmp/test1.xml' LOWER CASE.
So, open dataset was able to find the file.
Thank you.
Bing