Application Development 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: 

OPEN DATASET DS_NAME FOR INPUT IN TEXT MODE (SY-SUB = 8)?

Former Member
0 Kudos

I this case when trying to open the dataset we get a sy-sub of 8....an access problem?

Thank-You.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

OPEN DATASET <dsn> [Additions].

This statement opens the file <dsn>. If you do not specify any additions for the mode, the file is opened in binary mode for reading. SY-SUBRC returns 0 if the system opens the file. Otherwise, SY-SUBRC is set to 8.

I hope path you are giving is not correct.

Regards,

Satya

3 REPLIES 3

Former Member
0 Kudos

OPEN DATASET <dsn> [Additions].

This statement opens the file <dsn>. If you do not specify any additions for the mode, the file is opened in binary mode for reading. SY-SUBRC returns 0 if the system opens the file. Otherwise, SY-SUBRC is set to 8.

I hope path you are giving is not correct.

Regards,

Satya

Former Member
0 Kudos

if sy-sub = 8, menas that unable to open the file, it might be due to filepath or name or both.

check both file path and file name.

Former Member
0 Kudos

If you are using a unicode system, you have to use ENCODING DEFAULT addition.