View previous topic :: View next topic
|
Author |
Message |
ttcf15
New User
Joined: 11 Aug 2009 Posts: 6 Location: China
|
|
|
|
I need a c program to do the Mainframe ftp work(Include logining to host,changing EBCDIC into ASCII,puting files ).
Is there a api or function to do the work like ftp programe do?
how can do that?? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Google is your friend. I found the following by Googling "z/os ftp api".
Go to the IBM web site, find the Communications Server bookshelf, and read chapter 13 of the IP Programmer's Guide and Reference manual. This chapter is called FTP Client Application Programming Interface (API) and contains a section on COBOL, C, REXX, Assembler, and PL/I call formats. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I need a c program to do the Mainframe ftp work |
Possibly, but not so likely. . . With a few thousand different transmissions already implemented, none of the places i've supported has yet needed to invoke FTP from a program.
Suggest you create the file to be transmitted and then executa FTP separately.
Unless there is something extroardinary about the file, the EBCDIC/ASCII conversion is automatic . . . |
|
Back to top |
|
|
ttcf15
New User
Joined: 11 Aug 2009 Posts: 6 Location: China
|
|
|
|
I got it.
thank you all!!
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - good luck
d |
|
Back to top |
|
|
|