|
The following SQL worked fine:
INSERT INTO FileA
( SGAICD, SGFWTZ, SGFXTZ, SGUPCZ, SGEPVN, SGC7DT
, SGATTM, SGEQVN, SGOENB, SGERVN, SGDSDZ
, SGABTM, SGESVN, SGOFNB)
SELECT
SGAICD, SGFWTZ, SGFXTZ, SGUPCZ, SGEPVN, '2012-12-17'
, 000000, ' ' , 000000, ' ' , '2012-12-17'
, 000000, ' ' , 000000
FROM FileB
10678 rows inserted ........
So Target fields must be included in the INSERT part to match the
default VALUES
Also, CPYF *MAP does work with dates getting defaulted to run date.
The failure from yesterday was caused by separate error and not
connected with default values.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.