Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
determines the character field is in one of the these forms, it converts it to the<br />
date to-field. The date portion of the character field must be left justified and<br />
can contain trailing blanks.<br />
v For converting a character field to a time field, the minimum length required for<br />
the character field is 4. The system first determines if the character field data is<br />
in the same format and has the same separator as specified in the current job<br />
under which the copy command is running. This may be *HMS for the format<br />
and colon (:), comma (,), period (.), or blank ( ) for the separator. If the character<br />
field is not in the current job specified format and separator form, the system<br />
determines if it is in one of the SAA formats (*ISO, *USA, *EUR, or *JIS). If the<br />
system determines the character field is in one of these forms, it converts it to<br />
the time to-field. The time portion of the character field must be left justified<br />
and can contain trailing blanks.<br />
v For converting a character field to a timestamp field, the minimum length<br />
required for the character field is 14. The system first determines if the character<br />
field data is in one of the following:<br />
– SAA format<br />
– YYYYMMDDHHMMSS form<br />
If the system determines the character field is in one of these forms, it converts<br />
it to the timestamp to-field. The timestamp portion of the character field must be<br />
left justified and can contain trailing blanks.<br />
When converting a date, time, or timestamp field to a character field;<br />
FMTOPT(*MAP) is specified; and the corresponding from and to-file field names<br />
match; the system attempts to convert the date, time, or timestamp field into the<br />
form specified by the current job. The following applies:<br />
v For converting a date field to a character field, the minimum length required for<br />
the character field is 6. The system first determines the date format and<br />
separator attribute of the current job under which the copy command is running.<br />
This may be *MDY, *DMY, *YMD, or *JUL for the format and slash (/), hyphen<br />
(-), period (.), comma (,), or blank ( ) for the separator. The date field is<br />
converted into the character field in the specified format of the current job. For<br />
character fields that are longer than required for the conversion, the data is left<br />
justified and trailing blanks are added.<br />
v For converting a time field to a character field, the minimum length required for<br />
the character field is 8. The system first determines the time separator attribute<br />
of the current job under which the copy command is running. This may be colon<br />
(:), comma (,), period (.), or blank ( ). The time field is converted into the<br />
character field in the *HMS format (including the specified separator of the<br />
current job). For character fields that are longer than required for the conversion,<br />
the data is left justified and trailing blanks are added.<br />
v For converting a timestamp field to a character field, the minimum length<br />
required for the character field is 14. The timestamp field is converted into the<br />
character field in the YYYYMMDDHHMMSS form (no separators). For character<br />
fields that are longer than required for the conversion, the data is left justified<br />
and trailing blanks are added.<br />
When converting a zoned decimal field to a date, time, or timestamp field,<br />
FMTOPT(*MAP) is specified and the corresponding from- and to-field names<br />
match, the system assumes the zoned decimal field is in the form specified by the<br />
current job. The following applies:<br />
v For converting a zoned decimal field to a date field, the system assumes the<br />
zoned decimal field data is in the same date format (no separators) as specified<br />
Chapter 4. Copying files 113