Looking for sample code on moving a file from an IBM queue to a PC and vice versa. [ FTP ]
Printable View
Looking for sample code on moving a file from an IBM queue to a PC and vice versa. [ FTP ]
Phew, 3 FTP posts on the forum today! I am working on a proces based on FTP at the moment (it's to and from UNIX though). The Inet control is the best (and really only bi-directional) I have found. Theres' a tutorial on this site...
Thanks, but I am afraid those tutorials do not touch on carrying a conversation between and IBM Host and a PC.
Wayne
Hoi,
IF the IBM host supports TCP/IP, it will certainly support FTP with any type of host...Use the FTP-client you prefer.
or do you want to write your own app ?
What's a queue in relation with a IBM host, the mainframe is running a FTP-server and will send the file
you request it to send....
Anything else you want to know ? I work at a Mainframe....
Guus:
I sent an email asking our system analysis how to get around it and this is his reply.
I think that the current location of the file sent to the
mainframe is in the HTF and is stripped by the batch
application. The only way to get data into the HTF is by
using IND$. This could be changed to use an FTP
command to send the file to a VSE library on the host.
I have never touched anything like this and I need to get through this so I can learn how this movement of files works. I basically don't have a clue about ftp or inet and I would really appreciate a sample of code which would move a file to the IBM and move a file from the ibm to a PC.
If that's too much to ask, it's not a problem as I know time is not a factor that everyone has a lot of.
Thanks,
Wayne
Hoi,
Red Thread has already developed some ftp-coding, see
http://forums.vb-world.net/showthrea...threadid=50641
maybe he will share some coding with you....
The mainframe i'm working on is running another OS,
so i can't help you very much....
But, it looks like it supports FTP.
In general, your pc-app has to contact the system and
supply a userid and password.
Then, you issue FTP-commands like 'QUOTE SITE parameter' etc to setup the working environment for the VSE-system.
(You will have to contact a mainframe specialist to get that information, at least you need a list of the FTP-subcommands it supports.)
Finaly, you issue a GET or PUT command to activate the file-transfer.
I have no experience (yet) with this type of coding....
Thanks....