CRTLF (Create Logical File) command
The Create Logical File (CRTLF) command can be used to create files on the source and target servers through the SYSTEM parameter.
Consider the following items when using the SYSTEM parameter values:
- When you specify *LCL, the file is created on the local server.
- When you specify *RMT, the file is created on the remote server. You must specify a DDM file on the FILE parameter.
- When you specify *FILETYPE, if a DDM file has been specified on the FILE parameter, a remote file is created. If a DDM file has not been specified, a local file is created.
Consider the following items when using this command with DDM:
- The parameter FILE is the name of the DDM file that represents the remote logical file being created. The remote file specified in the DDM file is the logical file that is created on the remote server (which is also specified in the DDM file).
- The OPTION and GENLVL parameters have no effect on the remote command sent.
- The files specified on the PFILE or JFILE keywords in the DDS for the logical file must be at the same server location as the logical file being created.
- If *JOB is specified as the value of a parameter or is in the data description specification (DDS) for that file, the attribute of that source job is used for file and field attributes. The attribute of the source job is also used when the default for a file or field attribute is the job attribute.
- For a target server other than an iSeries™ server:
- The format name is ignored.
- Only the value of *ALL is supported for the DTAMBRS parameter.
- These parameters are ignored:
For System/38™ targets, the SBMRMTCMD command can be used to change these attributes.
- Only the value of *NONE is supported for the FMTSLR parameter.
- FILETYPE must be *DATA.
- If a member name is specified, it must match the DDM file name.
- For an iSeries target server:
- All parameters of the CRTLF command are supported with one restriction: authorization lists are not allowed for the AUT (public authority) parameter. DDM cannot guarantee the existence of the authorization list on the target server or that the same user IDs are in the list if it does exist. The public authority is changed to *EXCLUDE when you use an authorization list as a value for the AUT parameter of the CRTLF command.
- The file names specified in the DTAMBRS parameter must be the names of the DDM files that represent the remote based-on physical files. If a member name was specified as part of the remote file name of the DDM file, then only that member name can be specified. The member names must be the actual remote file member names.
Parent topic:
DDM-related CL command considerations