NCSU Campus Map - New Window NCSU Directory - New Window NCSU Search - New Window NCSU Homepage - New Window ETSS Home ETSS Banner

Prefered method of file-transfering data using the MVS FTP Client program


Topics


Definition of FTP & why it is used

The FTP (File Transfer Program) is used to transfer or copy files from one computer to another. This narative specifically deals with transfering data from the MVS Mainframe to another machine.

The only file type that can be processed by FTP on the Mainframe is Physical Sequential datasets. This includes standard PS datasets, GDG (generation data group datasets), and individual members of partitioned datasets. Tape files can not be file transfered; (however Tape Mount Managed datasets can).

The FTP MVS client propgram can also be used for issuing commands to SQL-FTP on one of the SYBASE dataservers. SQL-FTP is a FTP server program, running on a machine supporting a SYBASE datasever, that receives requests from an FTP client, but issues those requests to a SYABSE database.


Suggested JCL for performing a File Transfer

//STEPNAME EXEC PGM=FTP,PARM='host.name (EXIT=8'
//SYSPRINT  DD  SYSOUT=*
//SYSIN     DD  *
userid   password
put 'NCSACS.MVS.SOURCE.DATA.FILE' unix.target.file
get 'NCSACS.MVS.TARGET.DATA.FILE' unix.source.file
quit
/*

or

//STEPNAME EXEC PGM=FTP //SYSPRINT DD SYSOUT=* //SYSIN DD * host.name (EXIT=8 userid password put 'NCSACS.MVS.SOURCE.DATA.FILE' unix.target.file get 'NCSACS.MVS.TARGET.DATA.FILE' unix.source.file quit /*

FOR SAMPLE JCL USING SQL-FTP- please refer to the SQL-FTP url

Explanations for the above JCL

FTP Notes


Last Modified September 15, 2006by Jim Wagner (jim_wagner@ncsu.edu)