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 BINARY ISSUE

Former Member
0 Likes
488

Hi Friends,

the code below is giving improper output.

OPEN dataset fname for output in binary mode.

transfer 'This is test' to fname.

close dataset fname.

The downloaded file is

Application server

T#h#i#s#i#s#t#e#s#t

and in windows

T h i s i s t e s t

can you please suggest what the issue is........

3 REPLIES 3
Read only

former_member761936
Active Participant
0 Likes
450

Hi,

Try OPEN DATASET in TEXT MODE.I think it will work for tests.

Thanks and Regards,

Narendra.Somarouthu

Read only

0 Likes
450

the text mode is giving a blank line at the end of file.

I even tried transfer to dataset with no end line

I am unable to delete the last blank line so I need to adapt binary mode only.

Read only

Abhijit74
Active Contributor
0 Likes
450

Hi,

Please refer to the [Link 1 :|http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3cda358411d1829f0000e829fbfe/content.htm].

[Link 2|http://help.sap.com/saphelp_nw04/helpdata/en/79/c554a0b3dc11d5993800508b6b8b11/content.htm].

Thanks,

Abhijit