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: 8054
Location: East Dubuque, Illinois, USA

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: 8054
Location: East Dubuque, Illinois, USA

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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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