Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to ftp file with gigabytes fr mainframe to server?

Status
Not open for further replies.

praise12

IS-IT--Management
Mar 17, 2002
17
US
I need to ftp a gigabytes file from mainframe to Unix server. Do I need to modify anything as below in my script? or if you have something different, please share. Thanks.

echo 'ftp -vi' $IPADDR' <<Endftp&quot; > $TEMPFTPFILE 2>$1
echo 'site nostrip' >> $TEMPFTPFILE 2>&1
echo 'site unit($unit1) >> $TEMPFTPFILE 2>&1
echo 'site cyclinder' >> $TEMPFTPFILE 2>&1
echo 'site space(5,1) >> $TEMPFTPFILE 2>&1
echo 'site recfm(fb)' >> $TEMPFTPFILE 2>&1
echo 'site mount(999)' >> $TEMPFTPFILE 2>&1
echo 'site lrecl($lrecl1) >> $TEMPFTPFILE 2>&1
echo 'site blksize($blksize1) >> $TEMPFTPFILE 2>&1
echo 'put' $INPUTDSN $MFDSN >> $TEMPFTPFILE 2>&1
echo 'bye' >> $TEMPFTPFILE 2>&1
echo 'Endftp' >> $TEMPFTPFILE 2>&1

Any advice are appreciated! Thanks.
 
what do all these lines mean?

echo 'site nostrip' >> $TEMPFTPFILE 2>&1
echo 'site unit($unit1) >> $TEMPFTPFILE 2>&1
echo 'site cyclinder' >> $TEMPFTPFILE 2>&1
echo 'site space(5,1) >> $TEMPFTPFILE 2>&1
echo 'site recfm(fb)' >> $TEMPFTPFILE 2>&1
echo 'site mount(999)' >> $TEMPFTPFILE 2>&1
echo 'site lrecl($lrecl1) >> $TEMPFTPFILE 2>&1
echo 'site blksize($blksize1) >> $TEMPFTPFILE 2>&1

My version of your script would be just the put statement, maybe a 'binary' command if it's a binary file. Mike
&quot;Experience is the comb that Nature gives us after we are bald.&quot;

Is that a haiku?
I never could get the hang
of writing those things.
 
well, there just part of my script for running the ftp mainframe to server! Now, we are going to ftp something 'huge', so I was wondering anything I need to be aware of in terms of the script. Thanks.
 
The file doesn't need to be allocated to the unix server, unlike uploads to the mainframe; where you would allocate your dataset..
As Mike put it, just a bin and a put..
 
you're right, I think I posted the wrong script(it was from server to mainframe script), I'll try the 'put' command and see how it works...Thanks for all your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top