@PaigeMiller wrote:
Several of you have asked what type of field this is using native data base tools.
It is type DATE, with precision 10.
So does that help at all? How can a different user access this same table and see the field as character and length 20?
It helps because now we know that as per SAS documentation this should map to a SAS numeric column with a Date9. format.
What engine are you using (ODBC, SQLSRV, ....)?
If your code is identical and you're really connecting to the same table on the same database then the only thing I can think of that could cause this is some issue with a driver.
You could on both machine execute code as below and then compare the SAS logs.
libname yourdb ....;
/* run 1 */
options sastrace='d,' sastraceloc=saslog nostsuffix;
proc sql inobs=1;
select <problem col> from yourdb.<table>;
quit;
/* run 2 */
options sastrace=',,d,' sastraceloc=saslog nostsuffix;
proc sql inobs=1;
select <problem col> from yourdb.<table>;
quit;
Such log is likely also what SAS Tech Support will request from you.
SASTRACE= SAS System Option
... View more