You can define an FTP (FTP_JOB) job to automate FTP transfers. The output is directed to the spool file through an FTP server.
Note: To run these jobs, your system requires CA WA Agent for UNIX, Linux, Windows, or i5/OS.
Required Statements
To define an FTP job, you must specify the following statements:
Optional Statements
You can specify the following optional statements for an FTP job:
Example: Upload a Windows File to a Mainframe Data Set
This example uploads a file named TESTS to the mainframe. By default, the REMOTEFILENAME statement uses the user ID of the logged-on user for the data set high-level prefix.
Note: To specify a different high-level prefix, fully qualify the value of the REMOTEFILENAME statement and wrap double quotes around it.
AGENT WINAGENT LOCALFILENAME 'C:\My Documents\Microsoft Office Directories+ WordPad\tests.txt' REMOTEFILENAME ‘TESTS.DATA' SERVERADDR MAINFRAME.COM TRANSFERCODETYPE U TRANSFERDIRECTION UPLOAD USER causer
Example: Download a Mainframe Data Set to a Windows File
This example downloads the data set member CA07XX01 to a Windows computer. The value of the REMOTEFILENAME statement is fully qualified by wrapping double quotes around the single quotes.
AGENT WINAGENT LOCALFILENAME 'C:\My Documents\File Transfers\ca07xx01.txt' REMOTEFILENAME "'SYS4.CA7.JCLLIB(CA07XX01)'" SERVERADDR MAINFRAME.COM TRANSFERCODETYPE A TRANSFERDIRECTION DOWNLOAD USER lmla
Example: Download a File from a UNIX Computer to a Windows Computer
This example downloads a file from a UNIX server to a Windows computer. After the download is complete, the job completes.
AGENT SYSAGENT USER test SERVERADDR hpunix SERVERPORT 5222 TRANSFERDIRECTION DOWNLOAD TRANSFERCODETYPE A REMOTEFILENAME /u1/test/ftpdata/textfile LOCALFILENAME c:\test\textfile
Example: Download a Binary File on UNIX
The FTP job in this example uses a binary transfer.
AGENT UNIXAGENT USER test SERVERADDR hpunix SERVERPORT 5222 TRANSFERDIRECTION D TRANSFERCODETYPE B REMOTEFILENAME /u1/test/ftpdata/WAmgr LOCALFILENAME /export/home/test/ftpdata/transf.bin
Example: Download a QSYS EBCDIC-Encoded File
This example downloads an EBCDIC-encoded file named DATAFILE in the QSYS file system from an i5/OS system to another i5/OS system. The file names are specified in the path format.
AGENT I5AGENT USER test SERVERADDR i5unix SERVERPORT 5222 TRANSFERDIRECTION D TRANSFERCODETYPE E LOCALFILENAME /QSYS.LIB/FTPLIB.LIB/DOWNLOAD.FILE/DATA.MBR REMOTEFILENAME /QSYS.LIB/DATALIB.LIB/DATAFILE.FILE/DATA.MBR
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|