Page 1 of 1

FTP File Issue from Unix Server to Main Frames Server

Posted: Mon Feb 06, 2012 4:47 am
by Hope
Hi,

I have to migrate a file from Unix server to Main frame Server.
Job1
Sequential File Stage -----------------FTP Stage.
Job1 Copies file from Shared location to the local FTP Server.
When I open this file on the local FTP server.The data appears row by row.

Job2
FTP Stage-------------FTP Stage
Job2 moves file from Local FTP Server to the Main Frame Server.
When this file is opened on Main farme it appears as single line.Data is getting wrapped in to single line.

I tried changing the Transfer protocal to ASCII but didn't work.
I tried changing the format options in the sequential file to Unix new lines
and didnt work.
Please suggest how the data can appear in multiple lines.

Thanks
Hope

Posted: Mon Feb 06, 2012 11:37 am
by FranklinE
You can find some information you may need at the Mainframe files FAQ (viewtopic.php?t=143596).

You have not provided enough information to help you with your specific questions.

Is your mainframe character set EBCDIC (normal) or ASCII?

Is your operating system Unix or something else (MVS or z/OS, etc.)?

Typically, mainframe data is stored without any formatting and will appear in raw form as a "single line". A catalog keeps track of the line (record) length. So long as your catalog is set correctly, you will just transfer your data as a continuous binary stream.

Check the setting of your FTP put to mainframe stage against the FAQ.