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
 
FTPing EBCDIC with latin chars to unix

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

New User


Joined: 08 Sep 2008
Posts: 4
Location: Chennai

PostPosted: Tue Sep 09, 2008 5:49 pm    Post subject: FTPing EBCDIC with latin chars to unix
Reply with quote

Hi,

I have a file which contains Latin characters in it (eg., N with ~ on top etc.,) when i ftp the file to unix box the latin chars alone are substituted with other chars (like ¬).

Do some one has a resolution for this.

Thanks,
Hari
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Sep 09, 2008 8:10 pm    Post subject:
Reply with quote

Hello Hari and welcome to the forums,

Quote:
Do some one has a resolution for this.
When data is ftp'd from the mainframe to the unix system, it is converted from ebcdic to ascii. Your "latin" characters have a hex value that translates to the unwanted ascii character.

Do you know which hex value on the unix system represents the "Latin N"? Are there many?

You might talk with your network support people to see if there is a code page that provides the conversion you need. Otherwise, you may want to convert the Latin N (etc) to standard characters before downloading.

You could also transmit the file in binary and handle the conversion on the unix system.
Back to top
View user's profile Send private message
harikiranr

New User


Joined: 08 Sep 2008
Posts: 4
Location: Chennai

PostPosted: Wed Sep 10, 2008 2:32 pm    Post subject:
Reply with quote

Thanks for that!!!


I ahve transformed the file to UCS-2 and ftp'ed it in binary mode, i am getting the characters right.

Here again there is an issue all the records are coming together. I mean the CR anf LF are not getting ftp'ed (i believe).

I know that this is the nature of binary mode, but is there any way to retaint the CR and LF. So, that i can get the records in the way there are before ftp.

Thanks,
Hari
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: Wed Sep 10, 2008 4:52 pm    Post subject:
Reply with quote

CR/LF are PC concepts that are not applicable to mainframe. Unix, by the way, uses LF but not the CR. Probably the CR and LF aren't getting transferred because they don't exist on the mainframe file.

If your file is fixed record size on the mainframe, it's a fairly trivial process on a PC to chop the file back into records. If the file is variable record size on the mainframe, binary transfers are problematic due to the different way record sizes are determined between platforms.

Suggestion: find the Communications Server User's Guide manual and read about the SBDATACONN option of FTP. This allows you to change the code page while FTP is transferring the data.
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 PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts EBCDIC to ASCII conversion using OCOPY mistah kurtz All Other Mainframe Topics 5 Tue Sep 06, 2016 2:26 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm

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