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

FTP'd file

Former Member
0 Likes
610

Hi,

We have an interfacing system that dumps files to one of our directories. In Dev and QA server, the lines in every files in that directory always end with a pound (#) sign character. However, in production the lines do not end with a pound sign. Anyone knows what's causing this problem?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
576

I had come across similar situation. Our basis guys told me that since it is being FTPed from Unix to windows enviornment, the FTP program will put # at the end. Is your other system Unix? I changed my code by checking the last char in the record for #, if it found I deleted it. Hope this helps.

Hi,

As already said, it is nothing but a line-feed. I have also faced such a situation. If you are reading that file using open dataset from any programs, the way I did is as follows

OPEN DATASET VA_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED

IGNORING CONVERSION ERRORS.

Thanks,

Sowmiya M

3 REPLIES 3
Read only

gerd_rother
Active Participant
0 Likes
576

Hi,

What do you use to view the file? The SAPGUI uses the #-sign to display all printable characters. Perhaps the sign you see is actually a line-feed (x0A) which concludes a line.

Regards, Gerd Rother

Read only

Former Member
0 Likes
577

I had come across similar situation. Our basis guys told me that since it is being FTPed from Unix to windows enviornment, the FTP program will put # at the end. Is your other system Unix? I changed my code by checking the last char in the record for #, if it found I deleted it. Hope this helps.

Read only

Former Member
0 Likes
576

Hi,

As already said, it is nothing but a line-feed. I have also faced such a situation. If you are reading that file using open dataset from any programs, the way I did is as follows

OPEN DATASET VA_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED

IGNORING CONVERSION ERRORS.

Thanks,

Sowmiya M