SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTP ASCII vs Binary

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTP ASCII vs Binary
Author Message
RJ Roark



Joined: 09 Aug 2000
Posts: 6

Post FTP ASCII vs Binary Reply with quote

I am evaluating the product for use in our facility.

I am attempting to FTP a file from an IBM mainframe running MVS to a Win 95 PC. The file on the mainframe has a fixed record length of 161. When I transfer the file using FTPGetFile, I am getting all of the data but the record new ling marker (EBCDIC 'x15') is missing so the file is wrapping. I am using FTPConfig to set the mode to ASCII but it doesn't seem to be having any effect. Any help would be appreciated.

Code follows:

FTPConfig( "Transfer Mode", "ASCII")
FTPGetFile( "ibm.nnfd.com", "userid", "pwd", "user.res.save.file", "c:\\test.txt" )
FileConvert_EBCDIC_to_ASCII("c:\\test.txt")

Thanks.

RJ Roark

Wed Aug 09, 2000 1:42 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Re: FTP ASCII vs Binary Reply with quote

FileConvert_EBCDIC_to_ASCII replaces EBCDIC 'x15' with ASCII 'xDA'. You can update the code for this statement to do not replace this symbol or replace it with the same one. See Tools/Script Library for more details.

By the way, do you need to do the conversion (call FileConvert_EBCDIC_to_ASCII)?

: I am evaluating the product for use in our facility.

: I am attempting to FTP a file from an IBM mainframe running MVS to a Win 95
: PC. The file on the mainframe has a fixed record length of 161. When I
: transfer the file using FTPGetFile, I am getting all of the data but the
: record new ling marker (EBCDIC 'x15') is missing so the file is wrapping.
: I am using FTPConfig to set the mode to ASCII but it doesn't seem to be
: having any effect. Any help would be appreciated.

: Code follows: FTPConfig( "Transfer Mode", "ASCII")
: FTPGetFile( "ibm.nnfd.com", "userid", "pwd",
: "user.res.save.file", "c:\\test.txt" )
: FileConvert_EBCDIC_to_ASCII("c:\\test.txt")

: Thanks.

: RJ Roark

Wed Aug 09, 2000 2:23 pm View user's profile Send private message
RJ Roark



Joined: 09 Aug 2000
Posts: 6

Post Re: FTP ASCII vs Binary Reply with quote


Thanks for the quick response.

Yes, I do need to convert the file to ASCII. I am downloading text records that will be processed by a PC based program.

I have tried to run the download without the conversion and the EBCDIC 'x15' is not in the file (I looked at it with a hex editor). It seems as if the FTPConfig setting to ASCII is not having any effect.

Any additional thoughts?

TIA

RJ Roark
: FileConvert_EBCDIC_to_ASCII replaces EBCDIC 'x15' with ASCII 'xDA'. You can
: update the code for this statement to do not replace this symbol or
: replace it with the same one. See Tools/Script Library for more details.

: By the way, do you need to do the conversion (call
: FileConvert_EBCDIC_to_ASCII)?

Wed Aug 09, 2000 4:39 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Re: FTP ASCII vs Binary Reply with quote

A strange question, what version of Internet Explorer do you have on your system if any?

Have you tried FTPGetFile without using FTPConfig to get the binary identical mainframe file then run FTPConvert_xxx to make the desired conversion? You will need to find out which EBCDIC code supposed to be converted to ASCII 'x15'. FTPConvert is the tool that you can use to make any desired conversion

Does command line FTP utility converts to 'x15' in the ASCII mode? If yes, you can download the file as BINARY and then download as ASCII and then use your hex editor to look in both files in order to find which symbol is converted to 'x15'

: Thanks for the quick response.

: Yes, I do need to convert the file to ASCII. I am downloading text records
: that will be processed by a PC based program.

: I have tried to run the download without the conversion and the EBCDIC 'x15'
: is not in the file (I looked at it with a hex editor). It seems as if the
: FTPConfig setting to ASCII is not having any effect.

: Any additional thoughts?

: TIA

: RJ Roark

Wed Aug 09, 2000 5:05 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.