Page 1 of 2

last character in text file

PostPosted: Tue Apr 01, 2008 8:19 pm
by lestmen
hi guys
in all my programs i create text file type FB, but when i use the trasnfer file option or send i by ftp, there is always an last character than i dont know what's.
could me help someone

example
036;20080201; ; 0,00; 0,00; 0,00; 0,00; 725,90; 0,00; 333,34; 0,00;410
 <--------- what's ????

Re: last character in text file

PostPosted: Tue Apr 01, 2008 8:32 pm
by MrSpock
IF the example data you've shown is on an ASCII system, my guess is that it's a Windows end-of-file marker (CR/LF/Ctrl-Z).

Re: last character in text file

PostPosted: Tue Apr 01, 2008 8:54 pm
by lestmen
yes you are right, this character is maker of end-of-text,
maybe is a problem about my emulator ? and how can i set it to remove this character ?

my emulator is PERSONAL COMUNICATION ver. 5.7

Re: last character in text file

PostPosted: Tue Apr 01, 2008 9:47 pm
by dick scherrer
Hello.

If the "extra" character(s) appear in every record of an uploaded file (from desktop to mainframe), it is often easiest to allow for them in the mainframe file definition and then simply ignore them when processing the data on the mainframe.

Re: last character in text file

PostPosted: Tue Apr 01, 2008 10:22 pm
by lestmen
could you suggest me a way to remove this character, because the sequential file is FB and when edit in hexadecimal this file i dont see this character.
Thank you in advance
Sergio

Re: last character in text file

PostPosted: Wed Apr 02, 2008 6:18 am
by dick scherrer
Hello,

Are you transferring the file to the mainframe or from the mainframe?
If the "extra" character(s) appear in every record of an uploaded file (from desktop to mainframe),


the sequential file is FB and when edit in hexadecimal this file i dont see this character.
Please clarify this.

could you suggest me a way to remove this character
Possibly - depends on what we learn.

Re: last character in text file

PostPosted: Wed Apr 02, 2008 1:16 pm
by lestmen
Hello,

"Are you transferring the file to the mainframe or from the mainframe? "
no i am trasferring file from mainframe to my PC.

"the sequential file is FB and when edit in hexadecimal this file i dont see this character."
someome has said me to looking this character (marker of text) in HEXADECIMAL EDIT.

Re: last character in text file

PostPosted: Wed Apr 02, 2008 10:48 pm
by dick scherrer
Hello,

Yes, if you create the file on the mainframe, the "end" marker will not be in the mainframe file.

It is being added by the file transfer. There is only one at the end of the file, correct?

I believe you need to find a way to specify NOCRLF in your download command.

Re: last character in text file

PostPosted: Wed Apr 02, 2008 11:07 pm
by lestmen
dick scherrer wrote:Hello,

Yes, if you create the file on the mainframe, the "end" marker will not be in the mainframe file.

It is being added by the file transfer. There is only one at the end of the file, correct?

I believe you need to find a way to specify NOCRLF in your download command.


the character CRLF is ascii code is not the same to ETX (end of text)
Yes i can set in option receive file of my emulator remove the tick about CRLF but i beleived that that dont resolve my problem.

Re: last character in text file

PostPosted: Thu Apr 03, 2008 12:04 am
by dick scherrer
Hello,

but i beleived that that dont resolve my problem.
It may not. . . It may even cause a different problem with the records "running together".

I just checked several files that have been downloaded from the manframe and found none with the extra character at e-o-f.

I'll try a few things here to see if i can get the problem to happen. In the meantime, you might want to try to download the file from the "old" DOS prompt command. Sometimes the different implementation of the ftp software act differently.