Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
not valid, a diagnostic message is issued and the copy operation ends. You must<br />
left-justify the timestamp portion of the user-input field value; it can contain<br />
trailing blanks.<br />
Null-capable fields used by the INCREL parameter<br />
The INCREL parameter allows a value of *NULL as input for a field value. You<br />
can use the *EQ and *NE operators with the *NULL value to test whether a field in<br />
a database file contains the null value or not. *EQ means that the value is null, and<br />
*NE means that the value is not null when you specify the *NULL value. The<br />
*NULL value is not limited to null-capable fields.<br />
Different CCSIDs used by the INCREL parameter<br />
The copy command assumes that the input string for character, DBCS-open,<br />
DBCS-either, or DBCS-only fields are in the CCSID of the job in which the copy<br />
command is running. The input string is converted to the CCSID of the from-field.<br />
If no conversion table is defined or an error occurs while converting the input<br />
string, a message is sent and the copy operation ends. If the copy command can<br />
correctly convert the value, it uses the converted value for record selection.<br />
DBCS-graphic fields used by the INCREL parameter<br />
When you specify a graphic field for the INCREL parameter, you should enclose<br />
the DBCS data in shift-out and shift-in characters. The copy command assumes<br />
that the data is in the associated DBCS CCSID of the job CCSID. There must be a<br />
valid conversion to the field CCSID. Otherwise, an error occurs. The shift-out and<br />
shift-in characters are removed before doing the comparison.<br />
Copying deleted records (COMPRESS Parameter)<br />
Note: You can use this parameter on the CPYF command only.<br />
You can copy deleted and undeleted records from one physical file member to<br />
another by specifying COMPRESS(*NO) on a copy command.<br />
You may want to copy deleted records to preserve the relative record numbers of<br />
records that are copied from the from-file. If you do not use COMPRESS(*NO),<br />
only records that are not deleted are copied from the from-file. There are<br />
“Requirements of COMPRESS(*NO) parameter and the CPYF command”,<br />
“Restrictions of COMPRESS(*NO) parameter and the CPYF command” on<br />
page 104, and more “Details of COMPRESS(*NO) parameter and the CPYF<br />
command” on page 104 about copying deleted records.<br />
Requirements of COMPRESS(*NO) parameter and the CPYF<br />
command<br />
To use COMPRESS(*NO), the following conditions must be true:<br />
v The from-file and to-file must both be physical files.<br />
v The from-file and to-file must both be the same type (either source or data).<br />
v The from-file and to-file must either have identical record formats or you must<br />
specify FMTOPT(*NOCHK) to perform the copy.<br />
v You must use all the following (default) parameter values on the copy<br />
command:<br />
– PRINT(*NONE)<br />
Chapter 4. Copying files 103