• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 784
  • Last Modified:

Visual Basic....using FTP in Visual Basic to put a file on a mainframe

I am trying to FTP a file in VB 6.0 to a mainframe.  I have used the FtpPutFile function for windows files, but how do I use it to send FILETYPE, RECFM, LRECL, BLKSIZE requirements for ftping to a mainframe.  
  • 2
2 Solutions
Jeff DarlingDeveloper AnalystCommented:
That post shows someone else who is having the same problem.

The problem is sending other FTP commands that are not supported by Inet.

I would like to recommend XceedFTP.  Its a third party ActiveX, but It works great and will enable to you send other commands.

It's not cheap but it works good.


Jeff DarlingDeveloper AnalystCommented:

In my previous post, I recommended XceedFTP, but if you just want to use standard command line ftp you can set the commands using a site command

example command line ftp commands

open mymainframeip
quote site lrecl=80 blocksize=0  refcm=FB filetype=jes
put myjcl.txt

This will result in the JCL being submitted directly to the JES reader and the mainframe ftp server will return back the JES Job name and Jes Job number.

You could also use the ws-ftp sdk.  Here is a link with some sample VB code.



Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now