azaufan
2007-04-03 16:33:37 UTC
I'm using proc sql to connect to db2 and want to apply a date format
to a created column ...below is the example...DB2 doesn't seem to like
the format option no matter where i put it. Can this be fixed?
EXAMPLE 1:
proc sql;
connect to db2 (database=XXXXX ril=ur);
create table lib1.table as
select *
from connection to db2
(select a,
b,
c (format date9.)
from tablename
group by a,b,c
order by a,b,c
);
quit;
run;
OR
proc sql;
connect to db2 (database=XXXXX ril=ur);
create table lib1.table (c format=date9.) as
select *
from connection to db2
(select a,
b,
c
from tablename
group by a,b,c
order by a,b,c
);
quit;
run;
to a created column ...below is the example...DB2 doesn't seem to like
the format option no matter where i put it. Can this be fixed?
EXAMPLE 1:
proc sql;
connect to db2 (database=XXXXX ril=ur);
create table lib1.table as
select *
from connection to db2
(select a,
b,
c (format date9.)
from tablename
group by a,b,c
order by a,b,c
);
quit;
run;
OR
proc sql;
connect to db2 (database=XXXXX ril=ur);
create table lib1.table (c format=date9.) as
select *
from connection to db2
(select a,
b,
c
from tablename
group by a,b,c
order by a,b,c
);
quit;
run;