Date, time, and timestamp fields used by record keys (FROMKEY and TOKEY)

 

When the number of key fields and a value are used to specify the FROMKEY or TOKEY parameter, no conversion of data occurs if the corresponding key field in the from-file is a date, time, or timestamp field.

The user input string that you specify (including the separators) must be in the same format as the date, time, or timestamp field. If it is not, a file open error might occur, or the records copied might not be the result that you want. If *BLDKEY is specified for the FROMKEY or TOKEY parameter and the corresponding key field in the from-file is a date, time, or timestamp field, the system attempts to convert the user-input key field value to the format (and separators) of the from-file field. The following rules apply to the conversion:

 

Parent topic:

Selecting records by record keys (FROMKEY and TOKEY parameters)