last character in text file



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

last character in text file

Postby lestmen » Tue Apr 01, 2008 8:19 pm

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 ????
lestmen
 
Posts: 10
Joined: Sun Mar 23, 2008 8:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: last character in text file

Postby MrSpock » Tue Apr 01, 2008 8:32 pm

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).
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: last character in text file

Postby lestmen » Tue Apr 01, 2008 8:54 pm

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
lestmen
 
Posts: 10
Joined: Sun Mar 23, 2008 8:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: last character in text file

Postby dick scherrer » Tue Apr 01, 2008 9:47 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: last character in text file

Postby lestmen » Tue Apr 01, 2008 10:22 pm

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
lestmen
 
Posts: 10
Joined: Sun Mar 23, 2008 8:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: last character in text file

Postby dick scherrer » Wed Apr 02, 2008 6:18 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: last character in text file

Postby lestmen » Wed Apr 02, 2008 1:16 pm

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.
lestmen
 
Posts: 10
Joined: Sun Mar 23, 2008 8:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: last character in text file

Postby dick scherrer » Wed Apr 02, 2008 10:48 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: last character in text file

Postby lestmen » Wed Apr 02, 2008 11:07 pm

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.
lestmen
 
Posts: 10
Joined: Sun Mar 23, 2008 8:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: last character in text file

Postby dick scherrer » Thu Apr 03, 2008 12:04 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post