How to FTP file usinf shell script to Mainframes


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to FTP file usinf shell script to Mainframes
# 1  
Old 08-16-2008
How to FTP file usinf shell script to Mainframes

Hi ,

Please help me FTP an output file to mainframes using Mainframes.
I have no idea how to FTP to mainframes. Smilie

I need to deploy my code by next week. The code is ready but the client's requirement is that i need to ftp all the output file to the mainframes server. I created the dataset on mainframes also but have no idea how to FTP this output file to mainframes.

Please help me.

regards
Deepthi Mathew
deepthimathew
# 2  
Old 08-17-2008
I had scripts that ftp'ed to a mainframe in my last job. It was just like ftp'ing to a Unix system. The mainframe simply had a rather standard version of ftp running. Sometimes standard work. Smilie

There are plenty of threads with ftp scripts in them here. Just use the search function. Or scan the faqs.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with shell scripts for Informatica and mainframes

I am poor at scripting.Can any one help me write a script which parametrizes the script here . #!/bin/bash `rm file1.txt` lineCount=0 newRec=1 IFS=`echo "\n\c"` while read line do lineCount=$(($lineCount + 1)) #check is it a... (2 Replies)
Discussion started by: etldev
2 Replies

2. Shell Programming and Scripting

Shell script to FTP if file size is 0KB

Hi all, I was a UNIX shell script that will check for the file size of each file and it should be re directed to a text file say filesize.txt And if there are more than 10 0KB files then FTP should not happend and whenever there are less than 10 0KB files it should FTP the files. Kindly help me... (1 Reply)
Discussion started by: Codesearcher
1 Replies

3. Shell Programming and Scripting

how to read dbf file in shell script and to convert dbf file usinf shell script

Hi all, I am new to shell scripting. I have dbf file and I need to convert it into csv file. OR, can i read the fields from a .dbf file and OR seprate the records in dbf file and put into .csv or txt. Actually in the .dbf files I am getting , the numbers of fields may vary in very record and... (6 Replies)
Discussion started by: gauara
6 Replies

4. Shell Programming and Scripting

need to check the file using ftp in a shell script

i need to write a shell script.. connecting to another server using ftp and check whether the file ter.txt is exists there or not. i have written scirpt partially,as i new to Unix. ftp -inv $FTPHOST > $TEMPFILE1 2> $TEMPFILE1 << EOF user $FTPUSER $FTPPW binary prompt ${CD} ls *.txt... (11 Replies)
Discussion started by: KiranKumarKarre
11 Replies

5. Shell Programming and Scripting

shell script to ftp a file

Hi I would like to construct a UNIX shell script which when run, it will log on to an existing ftp server using a generic account and password, then list the files in a specific folder that begins with the string "abc" and particular date. The file names along with their creation date are then... (2 Replies)
Discussion started by: Manish4
2 Replies

6. UNIX for Dummies Questions & Answers

FTP to Mainframes from Unix

Hi, Iam new to unix.I have 3 files to be FTPied to Mainframe from Unix(Sun Solaries Unix). Sample record in one file is as shown below. 123ßRajß123-456ßjackßß 124ßRajeshß123-457ßjacmßß In the above file the records are seperated by delimitter "ß". When I used the below script to FTP from Unix... (3 Replies)
Discussion started by: Rahul321
3 Replies

7. UNIX for Dummies Questions & Answers

Problem in FTP from Unix to Mainframes

Hi, I have one file to FTP from Unix to mainframe. It has been successfully FTPied. But problem is my Unix file will be generated as file_name1.sh. But Mainframes side they need file in file.name1.sh. So they dont need underscore (_) in the file name. Please let me know if there is any solution... (1 Reply)
Discussion started by: manneni prakash
1 Replies

8. Shell Programming and Scripting

Shell script to ftp latest file

Hello All, Hope u r doing fine. I'm writing a shell script to ftp the latest file having pericular convention as 'ULTI_15072007043205.txt' on daily basis. Now the date & timing of the file geleration isnt constant, so the file name daily varies as per the date & timing of generation. Can anyone... (7 Replies)
Discussion started by: im_new
7 Replies

9. UNIX for Advanced & Expert Users

File FTP to Unix from Mainframes.

Hi I have got one file FTPd from mainframe in an ASCII format in Unix environment. If I have to deduce record width within this file, each approach we are finding different record width. head -1 filename | wc -m awk '{print length($0)}' filename ... lists record width for all records. sed... (5 Replies)
Discussion started by: videsh77
5 Replies

10. UNIX for Dummies Questions & Answers

FTP file to Mainframes

Hi, Can somebody please share a sample Korn shell script that will FTP a file from an Unix box to a region in Mainframe.It will be of great help if i can get this script ASAP.Or atleast give me a hint on how to do it. Thanks, Gopi (1 Reply)
Discussion started by: bhgopi
1 Replies
Login or Register to Ask a Question