• 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.  
0
VBStudent
Asked:
VBStudent
  • 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.

http://xceed.com/FTP_ActiveX_Intro.html

0
 
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
username
password
quote site lrecl=80 blocksize=0  refcm=FB filetype=jes
put myjcl.txt
quit

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.

http://forums.ipswitch.com/Topic10657-9-1.aspx


0

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