Skip to Content
author's profile photo Former Member
Former Member

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

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

Thank-You.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 03:55 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 04:45 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 04:49 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.