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

How to write a JCL for doing FTP


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rischith

New User


Joined: 24 Feb 2006
Posts: 9
Location: bangalore

PostPosted: Tue Jul 11, 2006 7:21 pm
Reply with quote

Hi All,

can anybody please tell how to write JCL for doing FTP...

am new to this technology

Thanks and Regards
Rischith
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jul 11, 2006 10:30 pm
Reply with quote

You'll want to read 4.0 Chapter 4. Transferring data using the File Transfer Protocol
and
5.0 Chapter 5. FTP subcommands in the z/OS V1R7.0 Comm Svr: IP User's Guide and Commands.

The program name is FTP. There are optional parameters.
The required DD names are INPUT and OUTPUT.
Optional DD names are NETRC and FTPDATA.

A typical job looks like this:
Code:

//FTPSTEP  EXEC PGM=FTP,PARM='EXIT'
//SYSUT1   DD DISP=SHR,DSN=DATASET.TO.SEND
//NETRC    DD DISP=SHR,DSN=TCPIP.NETRC.DATASET
//OUTPUT   DD SYSOUT=*
//INPUT    DD *
ip_address or server_name
userid and password (optional if specified in NETRC)
sendsite
ascii
cd server_directory
put //DD:SYSUT1 filename.ext
qui
/*


Also, before doing any data transfers using FTP, make sure that you check with your System Administrators to make sure that you and/or your job have the appropriate RACF security to even execute the FTP program. Also, make sure that you check with your Network Administrators to make sure that the TCP/IP network path exists between the mainframe and your target FTP server, and that you can properly navigate any firewalls that may be in place.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts JCL to write the log on to a PDS file JCL & VSAM 10
No new posts COBOL - create and write to output fi... COBOL Programming 0
Search our Forums:

Back to Top