You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
with 4 decimal positions is copied to a zoned decimal field of length 6 with 3<br />
decimal positions; 00115.1109 becomes 115.110.<br />
If significant digits must be truncated to the left of the decimal point, the value is<br />
not copied, and the field is set to its default value (either the parameter value of<br />
the DFT keyword, if specified, or zero, if the DFT keyword is not specified). Also,<br />
if significance will be lost because a floating-point numeric value exponent is too<br />
large, the to-file field is set to its default value.<br />
When you are mapping numeric fields for which the field that is being copied is<br />
shorter than the field into which the copy is made, the field being copied is<br />
padded with zeros on the left and right of the decimal point. For example, a<br />
packed decimal field of length 7 with 5 decimal positions is copied to a packed<br />
decimal field of length 10 with 6 decimal positions; 99.99998 becomes 0099.999980.<br />
Table 15. Field Conversions. (This table is not applicable to FMTOPT(*CVTFLOAT) or FMTOPT(*NULLFLAGS), where<br />
the from-file data is defined by the to-file.)<br />
To Character<br />
To Binary (No<br />
To Binary<br />
or<br />
Decimals<br />
Field (with<br />
From Hexadecimal To Packed To Zoned Positions) To Floating Decimals<br />
Field<br />
Field Decimal Field Decimal Field Field<br />
Point Field Positions)<br />
Character or<br />
Hexadecimal<br />
X<br />
Packed X X X X<br />
Zoned X X X X<br />
Binary (no<br />
decimal<br />
positions)<br />
X X X X<br />
Floating Point X X X X<br />
Binary (with<br />
decimal<br />
positions)<br />
X 1<br />
:<br />
1<br />
A binary numeric field with one or more decimal positions can be copied only to a binary field with the<br />
same number of decimal positions.<br />
Adding or changing source file sequence number and date fields<br />
(SRCOPT and SRCSEQ Parameters)<br />
120 <strong>File</strong> <strong>Management</strong> V4R5<br />
You can perform additions or changes to sequence number fields and date fields<br />
sequence number and date fields when you are:<br />
v “Copying device source files to database source files”<br />
v “Copying database source files to device source files” on page 121<br />
v “Copying database source files to database source files” on page 121<br />
Copying device source files to database source files<br />
When you copy from a device source file to a database source file, the system adds<br />
sequence number fields and date fields at the start of the records. The system<br />
assigns the first record a sequence number of 1.00, the next 2.00, and so on,<br />
increasing in increments of 1.00. If more than 9999 records are copied, the sequence