MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

get File from Unix to mainframe

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Wed Nov 09, 2016 11:32 am    Post subject: get File from Unix to mainframe Reply with quote

I have a file which has data as below in Unix box.

File.txt
136528520918


when I downloaded this to windows and FTP to mainframe. Its changing to the below format. its adding a low value '.' after each byte.
Code:

File.txt with Hex ON.
-------------------------------------------
.1.3.6.5.2.8.5.2.0.9.1.8.                   
0F0F0F0F0F0F0F0F0F0F0F0F0                   
0103060502080502000901080                   


any reason why this is happening. Thanks for your time.
Back to top
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Wed Nov 09, 2016 11:34 am    Post subject: Reply with quote

when I download the file froom unix to windows and when I open in notepad, it looks good.

some conversion is applied when I FTP this to mainframe, I am using the FTP UI in the Extra session to upload from windows to mainframe.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Wed Nov 09, 2016 11:44 am    Post subject: Reply with quote

vak255,

It looks like each byte is stored in ASCII with just a single carriage-return (x'0A') to mark the end of each record. z/OS stores data in EBCDIC. When transferring UNIX text files to the z/OS, the z/OS needs to know how long a record is so it can be properly stored. So make sure you are having a proper End of line character.
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Wed Nov 09, 2016 2:27 pm    Post subject: Reply with quote

Thanks Kolusu. I will check on it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group