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: 

Write the 2 Space into the every line in the text file.

Former Member
0 Kudos

Dear all,

Anybody Help me..

Create the text file in presentation server.

write the data into the file and every line having ended with 2 spaces.

example : "ABCD ".

Thanks in advance.

KSK

Message was edited by: KSK

10 REPLIES 10

Former Member
0 Kudos

You can use a simple 'concatenate' istruction to add 2 spaces at the end of record-set variable before the transfer istruction.

Gianluca

0 Kudos

Thanks for your Reply Gianluca,

I tried with this concatenate option. But i try to open with the excel file , space is not there in the coloumn..

BR

KSK

0 Kudos

Hi,

One other thing you must look at is the LENGTH addition to the TRANSFER statement.

Regards,

Anand Mandalika.

christian_wohlfahrt
Active Contributor
0 Kudos

Hi KSK,

do you use GUI_DOWNLOAD? There is an option TRUNC_TRAILING_BLANKS - of course this shouldn't be used (but it's not the default).

Maybe you post your code (data definition, example filling, download call).

Regards,

Christian

Former Member
0 Kudos

Hi Suresh,

In your first post, you have said that you are dealing with the files on the Application Server. And now you have edited the message to say that it is Presentation Server.

This is extermely confusing for the rest of the folks who follow this topic. Please try to avoid that as far as possible.

Regards,

Anand Mandalika.

0 Kudos

Damned, and I thought I was going mad. Thanks for your clarification, Anand, I will rehabilitate myself now.

0 Kudos

Hi Anand Mandalika.

First of all Thanks to you for helping to solve this topic.

Just FYI,

in my first post, i never said this files dealing with application.

topic was edited because i am trying to explain .. thats why i mention presentation server. [ because people they alway will focus with open dataset, transfer related to application server ].

could you help on this

Regards,

KSK

0 Kudos

Hi,

In case, it's just an explanation, you could have siad so in your rreply to Gianluca's answer. Anyways, if you say that you haven't referred to application server, it seems to me so childish to argue over that.

Now, if you're dealing with the presentation server, then Christian has already given a response. Have you tried that out ?

Regards,

Anand Mandalika.

0 Kudos

And one thing more, when you say "write to the file", it has come to mean that the application server is being implied.

In case, you want to talk about the presentation server, use something like "download from an internal table"...

0 Kudos

Hi KSK,

did you solve your problem? Otherwise: post your coding!

Regards,

Christian