I receive a weekly file that contains dates and needs to be appended into a table.
Currently this is done by appending into a temporary table that has all the date fields defined as character (10) and then appending this into the final table that has the date fields. This works but,as these are very big files, I'm trying to by-pass the 1st step and append directly into the structure with the date fields. The dates in the flat file are formatted as follows :
mm/dd/yyyy, date is set to MDY and Century is set to on., but when I issue the command "Append from <textfile> sdf", the date in the date field has two zeroes inserted in front of the century and the year is in the next field
i.e. "01/01/2003" ==> {01/01/0020} and "03" is in the next field.
I ha ve tried this with VFP 6.0 and VFP 6.0 wnd the results are the same.
Anybody have a solution for this ?
Julie
Currently this is done by appending into a temporary table that has all the date fields defined as character (10) and then appending this into the final table that has the date fields. This works but,as these are very big files, I'm trying to by-pass the 1st step and append directly into the structure with the date fields. The dates in the flat file are formatted as follows :
mm/dd/yyyy, date is set to MDY and Century is set to on., but when I issue the command "Append from <textfile> sdf", the date in the date field has two zeroes inserted in front of the century and the year is in the next field
i.e. "01/01/2003" ==> {01/01/0020} and "03" is in the next field.
I ha ve tried this with VFP 6.0 and VFP 6.0 wnd the results are the same.
Anybody have a solution for this ?
Julie