IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is it possible to call Mainframe ftp in a c Language


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ttcf15

New User


Joined: 11 Aug 2009
Posts: 6
Location: China

PostPosted: Thu Aug 13, 2009 10:39 am
Reply with quote

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?? icon_neutral.gif icon_neutral.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 13, 2009 4:51 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 13, 2009 9:22 pm
Reply with quote

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
View user's profile Send private message
ttcf15

New User


Joined: 11 Aug 2009
Posts: 6
Location: China

PostPosted: Fri Aug 14, 2009 5:58 am
Reply with quote

I got it.

thank you all!!
icon_lol.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 14, 2009 6:33 am
Reply with quote

You're welcome - good luck icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts Call program, directly from panel CLIST & REXX 9
Search our Forums:

Back to Top