Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
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: 4650
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: 8165
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us