The Delete File (DLTF) command can be used to
delete files on the source and target servers.
The following items should be considered when using the SYSTEM
parameter values:
- When you specify *LCL, only local files are deleted. This might include
DDM files.
- When you specify *RMT, the file is deleted on the remote server. You must
specify a DDM file on the FILE parameter. If a generic name is specified,
the remote files corresponding to any DDM files matching the generic name
are deleted. (The local DDM files are not deleted.)
- When you specify *FILETYPE, if a DDM file has been specified, the remote
file is deleted. If a DDM file has not been specified, the local file is deleted.
When you specify generic names, local non-DDM files are deleted first. Remote
files for any DDM files matching the generic name are then deleted. Local
DDM files are not deleted.
Notes: - Structured Query Language/400 (SQL/400®) DROP TABLE and DROP VIEW statements
work only on local files.
- If the DLTF command is used to delete the remote file without first releasing
(using the DLCOBJ command) the locks obtained by the ALCOBJ command,
the DDM conversation is not reclaimed until the source job has ended.