CRTPF (Create Physical File) command
The Create Physical File (CRTPF) 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 FILE parameter is the name of the DDM file that represents the remote file being created. The remote file specified in the DDM file is the file that is created on the remote server (which is also specified in the DDM file).
- The OPTION and GENLVL parameters create the same results as for local processing. These parameters have no effect on the remote command sent.
- 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.
- These parameters are ignored:
- AUT
- CONTIG
- DLTPCT
- FRCRATIO
- FRCACCPTH
- LVLCHK
- MAINT
- MAXMBRS2
- MBR
- RECOVER
- REUSEDLT
- SHARE
- UNIT
- WAITFILE
- WAITRCD
For System/38™ targets, the SBMRMTCMD command can be used to change these attributes.
- FILETYPE must be *DATA.
- All other parameters are supported.
- If a member name is specified, it must match the DDM file name.
- The only CCSID values that are supported are:
The file is not created if any other CCSID value is specified.
- *HEX
- 65535
- *JOB
- Process CCSID of the source job
- When the DDS keyword VARLEN is used, DDM tries to create a variable-length record file on the target server. There are some specific rules for this keyword.
- On an iSeries target server, all parameters of the CRTPF 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 CRTPF command.
Parent topic:
DDM-related CL command considerations
Related reference
DDM-related DDS keywords and information