ftp flat file from MVS(OS390) to Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris ftp flat file from MVS(OS390) to Solaris
# 1  
Old 01-31-2005
ftp flat file from MVS(OS390) to Solaris

I've been working on this for a while and decided to see if anyone else here had this same issue. I'm trying to ftp a file from a mainframe (OS390) to Solaris. Obviously this is easily done, however the file is somehow being stripped of data in comparison to the way we transfer the file via a reel tape. The data coming from the tape is 93M larger than the file via ftp. Does anyone have any ideas why this is happening? Smilie
# 2  
Old 01-31-2005
I know nothing about mainframes, so don't flame me too bad if I'm way off. But I do remember an issue with files from a mainframe being in ebcdic format which Solaris doesn't handle properly.

There are options on the dd command which let you convert files between different formats. I checked the man page for dd and it shows that converting ebcdic to ascii is one of the options it will handle. Maybe you could take a look at that and see if it will help.
# 3  
Old 01-31-2005
..........

could be a difference between the filesystems. don't know which fs os390/vms/host use but there is also a small diff between solaris' ufs and windows ntfs.... they are using diff blocksizes.. so if you have a bs of 512byte and you want to save a 1700bytes file you need 4 blocks... well the file is still 1700bytes but you will need 2048bytes in the filesystem. so if there are more files with such a difference the disk usage grows up.......

gP
# 4  
Old 01-31-2005
My guess: You need to transfer the file in binary mode rather than ascii mode.
# 5  
Old 01-31-2005
MVS may have channel control words embedded in files -- at the beginning of every line. So if you have 250,000 lines you have an extra 500,000 bytes.

MVS also pads fixed length record files out to the record boundary.

I dunno what you're dealing with, but get into FileAid and find out for yourself.
# 6  
Old 02-04-2005
thanks, I will look into it.. I may have to rewrite the program that deblocks the MVS data and converts it to ascii. thanks for all of your inputs.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Typeset -i in MVS (Mainframe system)

Hi, I have one job that runs daily and creates daily files. At the end I compare the today's file with previous day's file. And if today's file size is greater or equal to previous day's file, then it is ok, else I need to through error. I have following piece of code: typeset -i... (2 Replies)
Discussion started by: ppatra
2 Replies

2. UNIX for Advanced & Expert Users

MVS compression that unix can uncompress

Dear all, I have been given the opportunity at the last minute to help on a project. There is a need to move some very large files from an MVS machine to an AIX one. The servers are remote with (I think) a 2Meg network pipe between them. The people on the project have been moving small... (1 Reply)
Discussion started by: rbatte1
1 Replies

3. Shell Programming and Scripting

Sending File from Unix to MVS

Hi, I am trying to send a txt file via FTP to the Mainframe or MVS. the file gets sent to the MVS but the user name gets appended to the file name. For eg if i am sending test.txt, in the mainframe it lands as username.test.txt. I tried putting the filename inside single quotes but I get an... (3 Replies)
Discussion started by: naveensraj
3 Replies

4. AIX

MVS DB2 Connection from AIX

Hi, I want to try to connect to a DB2 (MVS) database from an AIX, through my c++ custom program. Is anybody who knows how can I do this? Which libraries should I use? Should I have a DB2 connect installed on my AIX? Thank you in advance. (3 Replies)
Discussion started by: develo
3 Replies

5. Emergency UNIX and Linux Support

SFTP issue when connecting from MVS to AIX

Dear all, I was given the ID_DSA.pub by an MVS user, which I placed in the appropriate user's authorized_keys file. When the user tris to SFTP from their side to the AIX box, the following error is got: error: debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY ... (6 Replies)
Discussion started by: ggayathri
6 Replies

6. Solaris

file showing 0 byte after ftp from windows to solaris 10 box

Dear All I am trying to put a file from window system to solaris 10 box through ftp, but after connected to solaris 10 through window via ftp, I put a file( its a solaris package) through put command to solaris box. When I checked it on solaris box I get a file having 0 bytes. even I try to put... (3 Replies)
Discussion started by: amity
3 Replies

7. UNIX for Advanced & Expert Users

MVS->Unix FTP : Using chmod as part of FTP.

We are transferring file from mainframes to unix, & in FTP process itself we would like to set access rights for unix machine. Has anyone used chmod command in association with site command in ftp? How it should be used? Thanks in advance. (1 Reply)
Discussion started by: videsh77
1 Replies

8. Shell Programming and Scripting

SFTP to MVS system

Hi All, I have written a script that transfers(FTP) files from Unix system to MVS system. Below is the code for it. ftp -inv $HOST<<ftp_test quote site LRECL=200 quote site BLKSIZE=28000 mput SOURCE DEST ftp_test Here I need the help, if the above code can get... (3 Replies)
Discussion started by: rinku11
3 Replies

9. Shell Programming and Scripting

FTP script to FTP file to UNIX - Solaris

Hello, A couple of times per week, i receive emails notifications when files are available for processing. Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies

10. UNIX for Advanced & Expert Users

How to retain file permissions during FTP on Solaris 5.9 ?

Hi All, I am trying to ftp a file : -rw-rw-rw- 1 oraclepbdw dba filename.txt from Machine A ( where umask is 022) to Machine B (umask 022) but the file changes to -rw-rw-r-- 1 ftpamle3 ftaml filename.txt Dur some constraints the group of the users on either side... (3 Replies)
Discussion started by: gauravsachan
3 Replies
Login or Register to Ask a Question