Hi,
A good approach here is to first create the target table without any data but with the definitions as you want them. Then you run your extract and do a force append of that to the dataset you created. This will make certain you get what you want instead of letting the access engine decide. For example:
/**
* Step 1: create the target table.
*/
data target;
attrib col1 length=$10;
attrib col2 length=$40;
attrib col3 length=8;
call missing(col1, col2, col3);
stop;
run;
/**
* Step 2: define the source, preferrably as a view.
*/
proc sql;
create view source as (select col1, col2, col3 from ....);
quit;
/**
* Step 3: Load the source data into the target table
*/
proc append base=target data=source force;
run;
This is a pattern that is typically implemented in the data loader transform in SAS DI Studio.
Hope this helps,
-- Jan.
... View more