Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to write a JCL for doing FTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to write a JCL for doing FTP
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

Moderator Team Head


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

PostPosted: Tue Jul 11, 2006 10:30 pm    Post subject: Re: JCL for Doing FTP
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts Compare 2 files & write Indicator... nagendrapgupta SYNCSORT 5 Sun May 15, 2016 10:42 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us