Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP: Hex 1A character appearing while FTP file to windows.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
RohitVerma

New User


Joined: 27 May 2010
Posts: 2
Location: Mumbai

PostPosted: Thu May 27, 2010 5:13 pm    Post subject: FTP: Hex 1A character appearing while FTP file to windows.
Reply with quote

Hello,
I require to FTP some files to windows based server in text format.
The files which I FTP contains Hex 1A character to mark End of file.

This Hex character is causing problem as the files need to be processed at a windows based server.

Please suggest some way to remove/avoid this Hex 1A character in the text files.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7990
Location: Bellevue, IA

PostPosted: Thu May 27, 2010 5:20 pm    Post subject:
Reply with quote

Where does the hex 1A character come from? This would not normally be a character seen in a text file on the mainframe.
Back to top
View user's profile Send private message
RohitVerma

New User


Joined: 27 May 2010
Posts: 2
Location: Mumbai

PostPosted: Thu May 27, 2010 6:17 pm    Post subject: Reply to: FTP: Hex 1A character appearing while FTP file to
Reply with quote

As i mentioned the files required to be sent to a windows based server for processing. So the format needs to be changed from EBCIDIC to ASCII during FTP process.

This Hex 1A charcter is inserted by mainframe to mark end of file while converting file to ASCII format.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu May 27, 2010 6:35 pm    Post subject: Reply to: FTP: Hex 1A character appearing while FTP file to
Reply with quote

AFAIK the ASCII EOF mark (Ctrl-Z or hex '1A') is mandatory so there is no provision for suppressing it. My thought is to first convert your data into ASCII, allowing you to determine what values are placed where for EOL and EOF, and then sending that ASCII data in binary mode.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7990
Location: Bellevue, IA

PostPosted: Thu May 27, 2010 6:37 pm    Post subject:
Reply with quote

A PC uses the hex 1A character to denote the end of the text file and you do not want to remove this character as there may be side effects. PC software recognizes the hex 1A and stops file processing at that point. If you have software that is attempting to process it as data, your software is wrong and needs to be corrected.

As far as I know, unless you start transferring the file in binary, there is no way to prevent the hex 1A from being added to the end of the file -- that is just the way the PC works.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 0 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us