Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open Dataset Error - 8 help needed

Former Member
0 Likes
3,926

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,050

8 means 'Operating system could not open file'

U are not authorized to open the file/file not present ..

6 REPLIES 6
Read only

Former Member
0 Likes
2,051

8 means 'Operating system could not open file'

U are not authorized to open the file/file not present ..

Read only

Former Member
0 Likes
2,050

sy-subrc = 8 >>> means cant open the file ....check file location and see if the file actualli is there..

regds

Read only

Former Member
0 Likes
2,050

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.

Read only

Former Member
0 Likes
2,050

Please check if the directory in which you are trying to save the file is valid?

Read only

Former Member
0 Likes
2,050

.

Read only

Former Member
0 Likes
2,050

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