Transfer files to a remote system
Transfer files to a remote system. Upon transmission, the file will be left in it's original directory, removed, or moved to a backup directory.
- INFILE
- Input files. File names matching this specification will be processed. Wild-card specifications are permitted.
- OUTSYS
- Output system. The remote system to which the files matching INFILE will be transferred.
- OUTDIR
- Output directory. The output directory on OUTSYS to which the files matching INFILE are to be transferred.
- TRANSOPT("MOVE")
- Transfer option. Describes how to handle the original files after they have been transferred to the remote system:
= COPY : Leave the original files intact = MOVE : Remove the original files = BACKUP : Move the original files to the BACKDIR directory
- LOGFILE
- Log file name. File where all processing messages will be logged. An extension of ;LOG is assumed.
- BACKDIR(--)
- Backup directory. If TRANSOPT is BACKUP, the original files will be moved to this directory after they have been successfully transmitted to the remote system. If TRANSOPT is not BACKUP, this parameter will be ignored.
All files matching "ah*.arch" in the directory "[dir1.dir2]" will be copied to "[sg1.final.dir]" on the remote system "edcsg1". Once each file has been successfully transmitted, it is moved to the directory "[my.backup.dir]". Messages are logged in "mylog;log".
All files matching "ah*.arch" in the directory "[dir1.dir2]" will be copied to "[sg1.final.dir]" on the remote system "edcsg1". Once each file has been successfully transmitted, it is removed from "[dir1.dir2]". Messages are logged in "mylog;log".
All files matching "ah*.arch" in the directory "[dir1.dir2]" will be copied to "[sg1.final.dir]" on the remote system "edcsg1". The original files will be left in "[dir1.dir2]". Messages are logged in "mylog;log".
All of the files matching INFILE will be transmitted to OUTDIR on the remote system OUTSYS. Post-processing will be performed on the files matching INFILE based on the specified TRANSOPT option. Messages are logged in LOGFILE.