• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 858
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

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