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

Problems with OPEN DATASET FOR INPUT TEXT

joo_mariano2
Participant
0 Likes
1,160

Hello All,

I need to open a file on appServer using OPEN DATA SET FOR INPUT TEXT.

sy-subrc is 8.

But i can open another file in same directory.

What happened??

Thank's

10 REPLIES 10
Read only

Former Member
0 Likes
1,136

The file path is case sensitive. Please try to use the same case.

Sy-subrc = 8, I guess file path not found.

Hope it helps,

Shreekant

Read only

0 Likes
1,136

May be file is not present in APP server or

User doesn't have the permession to access that file

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,136

Is the file marked as "Read Only"?

Regards

RIch Heilman

Read only

Former Member
0 Likes
1,136

Hi,

You might mentioned the Wrong path, please look at the` path

Regards

Ashok Reddy

Read only

joo_mariano2
Participant
0 Likes
1,136

The path is correct.

When i try to open with content 'Test', I obtain to open.

But when content is:

C;MT65E-07X055;ZMTEXP;MT - ADSL 3º TRI - TGBK;65000002;11062007;15092007;

I;1;MT65E-07X055;MT - ADSL 3º TRI - TGBK;28;2007;PINV-BRT;MTRXCD;2007;

I;2;MT65E-07X055-001;TGBK;28;2007;

The sy-subrc is 8.

Read only

0 Likes
1,136

If the path is correct, try with giving the file name with extension like .txt and all

( if it is user input )

Like "test.txt"

~ laxmi

  • if u find the answer helpful, reward it .

Read only

0 Likes
1,136

hi,

go to T-code AL11 and first check whether the file is there in APP server......... or not.

if the file exists then i think ur giving the path wrong(including the folder name is also case sensitive).

so chek the logical path,file and folder name oprectly.......

Thanks,

Ravinder.

Read only

0 Likes
1,136

Hi,

Is the problem with the OPEN command or with the READ command? I ask this because your file contains special characters like 3º

Try the following:

OPEN DATASET '???' FOR INPUT IN LEGACY TEXT MODE.

Read only

Former Member
0 Likes
1,136

Hi,

Check your file name and path using the transaction AL11.

Thanks

Ram M

Read only

Former Member
0 Likes
1,136

Hi,

Verify the path and file name in p_file.

Make sure that the file actually exists

Regards