Downloading file from mainframe to UNIX


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Downloading file from mainframe to UNIX
# 1  
Old 06-25-2015
Downloading file from mainframe to UNIX

Hi All ,
I need a help regarding file ftp ing from mainframe to unix.Our source file is mainframe file.I need to download the mainframe file to local unix server through unix script.If anyone can help me how we can do it through unix script ,it will be really helpful.Thanks.
# 2  
Old 06-25-2015
at the time I used to do such things you would have to use true basic ftp understood commands... then mainframes are proprietary OS, to know what exactly you can do will depend of the mainframe OS that you have not mentionned... For except puts and gets, how you connect to the mainframe using ftp we cant guess what you need...
# 3  
Old 06-25-2015
Hi ,
The mainframe OS we are using is z os.We have mainframe host server ip ,user name ,pw ,mainframe file name and its corresponding location information,then could you suggest me through which unix command or unix script ,we can download the large volume mainframe file to local unix.Your help in this regard will be highly appreciated.Thanks.
# 4  
Old 06-25-2015
Why do you think that you need a script? You would normally only use a script to run the ftp repeatedly. Also, before you try to write script, you should check that it works interactively (from the command line). If you can't get it to work interactively then you have no chance trying to script it.

---------- Post updated at 07:45 PM ---------- Previous update was at 07:44 PM ----------

Do you know whether the mainframe has a ftp server?
Do you know whether the Unix system has a ftp client?
# 5  
Old 06-26-2015
I will add that you havent mentionned the type of file either, mainframes use specific file formats, do you know if they have been adapted/converted to be usable under UNIX or will you have to do that after?
# 6  
Old 06-26-2015
Hi hicksd8,
The unix server we are using it is working interactively from the commandline.The unix scripts are running fine from our unix system.And the mainframe has a ftp server and unix system also having ftp client.

@vbe ,

The mainframe ebcdic file has been converted to readble format in the mainframe system only through sort technique.We just need the download the readble format file from the mainframe location to the unix local box through unix script.If you kindly help me in this regard ,it will be really helpful.Thanks!
# 7  
Old 06-26-2015
If you did a bit of search in the forum here you would have found e.g.
FTP in batch mode

What more do you want?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Downloading hdfs file to local UNIX through UNIX script

Hi All , I am very new to unix script.I am aware of unix commands but never put together in unix script level.If any one can suggest me technical guidance in the below scenario that will highly beneficial. Data have been already migrated from mainframe to Hadoop file system(HDFS).HDFS server... (15 Replies)
Discussion started by: STCET22
15 Replies

2. UNIX for Advanced & Expert Users

How to read variable length file on UNIX generated by Mainframe?

Hi All, We have variable block file generated on Mainframe. We have to process the file on unix. So we FTPed the file on binary (as it has packed decimal fields). but i don't know how to read the file on unix. As you know variable block file will have a data like record length followed by... (2 Replies)
Discussion started by: SundarGampa
2 Replies

3. UNIX for Dummies Questions & Answers

Vb file from UNIX to mainframe

Hi Everyone, Do I need to provide record length as Record length + 4 when I'm transferring a variable block files from unix to mainframe through ftp? For example, I have a file in unix (ebcidic converted) with maximum record length of 100. This works correctly, quote... (1 Reply)
Discussion started by: poova
1 Replies

4. UNIX for Dummies Questions & Answers

Mainframe to Unix. Huge file >5GB

Hi, The files are being zipped from mainframe to the UNIX server. I have to unzip huge files on AIX server which is too old. The UNZIP as well as gzip utility version is not able to handle it and if we have to install the latest version there is a lot of process which takes lot of process. Is... (4 Replies)
Discussion started by: Bijesh
4 Replies

5. UNIX for Dummies Questions & Answers

UNIX sftp from mainframe

I have the following UNIX script which copies a file from a UNIX server in Canada to a UNIX server in the UK. LOG=/data/proj/sftp/canada.log DAT=`date "+%d/%m/%y %H:%M"` HOMEDIR=/data/proj/sftp TGTFILE=P_DATA.csv cd $HOMEDIR echo "\nStarting retrieval of Canadian Data at $DAT" >> $LOG ... (1 Reply)
Discussion started by: mishnok
1 Replies

6. UNIX for Dummies Questions & Answers

Unix command used for downloading file from net

Hi, Which command I can use to download a file from website? I tried with wget and lwp-dowload but no gain. Can any one suggest me the good way to dowload? (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

7. UNIX for Advanced & Expert Users

ftp file from unix to mainframe

thanks (2 Replies)
Discussion started by: ashishabhishek
2 Replies

8. UNIX and Linux Applications

ftp from unix to Mainframe

suppose i have a file named xyz(-1) and i have to transfer(ftp) it on a Mainframe from unix,how should i do it as whenever i try to do so it says use MVS naming conventions (1 Reply)
Discussion started by: ashishabhishek
1 Replies

9. Shell Programming and Scripting

mainframe assembler file into Unix

Hi, I have received a mainframe file ( VSAM file ) . I would like to handle that file in Unix. i.e I would like to take the last record of the file. I have given wc -l <file_name> , it gives 0 lines. Even though It has some lines , it is not giving count exactly. When I gave file <file_name>... (1 Reply)
Discussion started by: thambi
1 Replies

10. Shell Programming and Scripting

Moving file from Mainframe to Unix

Hi I m an absolute dummy on UNIX, I m basically a SAP guy. but I require a file which is stored on the mainframe to be moved to Unix application server. I got the following script to do it from someone #! /usr/local/bin/move_prom REMOTE_HOST=158.52.246.30 # Hostname of the remote Mainframe... (2 Replies)
Discussion started by: satyaj_99
2 Replies
Login or Register to Ask a Question