A lot has been said about MVS/DNS/etc..., knowing the IP address of the 
workstation in order for MVS to initiate the FTP "down" to the WS.  Most have 
said it needs to be a static IP address.

At this site, we use static IP addresses.  However, while I no longer have the 
VBS/WSF (a VB script) file, at a prior site I wrote a plain-ole BAT/CMD file 
which called CSCRIPT to process the VBS/WSF file which would parse a txt file 
that was the output of "IPCONFIG /ALL > IPINFO.TXT".  The data in the file 
contained the current WS IP address.

Once the file was parsed (I got the data I needed), I knew the IP address and 
would save it to a one-line TXT file which was then FTP'ed to the MVS host and 
stored in a flat file which was read, actually copied, into the “host side” 
FTP SYSIN file.  Now, I had what I needed to know to initiate the FTP down to 
the workstation.  Using the Scheduled Tasks utility in XP, the BAT/CMD file 
would be kicked off at system started up (boot) and daily, about 10-15 minutes 
before the first MVS job of the day that produced the data I needed on the WS.

While there may have been a better solution, or one more robust/reliable, it 
was not as ugly as it seems and the end result was it worked!  In the time I 
was there using this process, there was only one occasion when the lease of a 
workstation expired between the time the IP address was FTP’ed to the host 
and the time the host needed the IP address to send the data down.  I had 
intentions of rewriting the script file, but you know how that is…


 On Wed Mar 19  9:34 , Rich Juchniewicz <[EMAIL PROTECTED]> sent:

>You could consider running an FTP server on Windows on a PC in your network 
>that has a static IP address, and initiate an FTP session to it from z/OS to 
>transfer the files. We've used the free FileZilla FTP server to do this: 
>http://filezilla-project.org/
>
>..Rich
>
>----- Original Message ----- 
>From: "David Day" [EMAIL PROTECTED]>
>Newsgroups: bit.listserv.ibm-main
>To: IBM-MAIN@bama.ua.edu>
>Sent: Tuesday, March 18, 2008 2:08 PM
>Subject: MVS initiated FTP to Windows
>
>
>    I would like to be able to kick off an FTP of a dataset to a Windows 
>platform from MVS.  All of the info I can come up with talks about how to 
>perform this from the Windows side.  Windows initiated receive.  I want to 
>do this from the MVS side.  When the file(s) are ready, send them down to 
>the PC.  Not when the file(s) are ready, go over to the PC, and run FTP from 
>there to receive the file(s).   Is this possible?  Is there anything like an 
>FTP daemon that can run on Windows to receive the data and put it in the 
>desired location?
>
>    --Dave Day
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
>Search the archives at http://bama.ua.edu/archives/ibm-main.html 
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
>Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to