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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using wininet.dll for mainframe

Status
Not open for further replies.

mmetze

Programmer
Oct 2, 2001
45
US
I want to transmit files via FTP to a mainframe location using the API functions within WinINet.dll. I see that in unix, to FTP to a mainframe location, a "quote site" command must be issued to set properties such as record length, block size, etc. prior to calling the put or mput functions. Can this be accomplished by using the API functions within WinINet.dll?
 
The answer to your question is yes.

Here's a link has some sample code for a function called FTransferCommand which can be called to issue your "site" statement prior to actually doing the ftp:


Here's another link to help with syntax of your site parameters:


I ended up putting together bits and pieces from various places, but finally got mine to work. One key point is for GDGs you need a DCB=... to provide a DCB pattern for the dynamic allocation on the mainframe side to work.

Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top