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" > $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.
echo 'ftp -vi' $IPADDR' <<Endftp" > $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.