Skip to Content

application server

dear frnds,

i have the below 2 statements by which i create a file in the application server.

OPEN DATASET p_filnam FOR output IN binary mode.

CLOSE DATASET p_filnam.

and here p_filnam = '/usr/sap/DP1/DVEBMGS00/work/madan.txt'.

but the file is not being created. Can you find any error in the above 2 statements??

points assured to all answers.

regards,

Madan...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    May 01, 2006 at 05:20 PM

    Doest path exist ? Do you make sure from TR.AL11.?

    try

    <b>open dataset gc_output_file for output in text mode encoding default.</b>

    Thanks

    Saquib Khan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 01, 2006 at 05:21 PM

    Try using this command:

    OPEN DATASET p_filname FOR OUTPUT

    IN TEXT MODE

    ENCODING NON-UNICODE

    IGNORING CONVERSION ERRORS.

    And also check the value of sy-subrc after the statement. It should return a '0' value. If not, you have got some problem in your file system probably.

    Also check in AL11 that the directory /usr/sap/DP1/DVEBMGS00/work you are trying to use exists.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 01, 2006 at 05:30 PM

    Well, what is sy-subrc after the OPEN?

    Rob

    Add comment
    10|10000 characters needed characters exceeded

  • May 01, 2006 at 05:40 PM

    Hi,

    try this way,,..

    open dataset p_file for output in text mode encoding default.

    if sy-subrc = 0.

    endif.

    close dataset p_file.

    Regards

    vijay

    Add comment
    10|10000 characters needed characters exceeded