karlomutschler
Programmer
hi everyone,
with the following script we create a SAS-table from an Oracle DB:
rsubmit;
proc sql;
connect to oracle(user="&uname" password="&pw" path="db_path" buffsize=200);
create table TABLENAME as
select * from connection to oracle
(
select tbl1.column1 as label1,
tbl2.column2 as label2,
tbl1.valid_from as label3,
sum(tbl1.column5) as label4
from oratable1 tbl1,
oratable2 tbl2
where whereclause1
.
and whereclause5
group by otbl1.column1, tbl2.column2, tbl1.valid_from
)
;
disconnect from oracle;
quit;
endrsubmit;
tbl1.valid_from is imported into the SAS-table as Example: 05DEC2003:00:00:00
However, we would like to store tbl1.valid_from in the format: 05122003 = ddmmyyyy
Any suggestions most welcome.
Kind regards
Karlo
meistertools@gmx.net
with the following script we create a SAS-table from an Oracle DB:
rsubmit;
proc sql;
connect to oracle(user="&uname" password="&pw" path="db_path" buffsize=200);
create table TABLENAME as
select * from connection to oracle
(
select tbl1.column1 as label1,
tbl2.column2 as label2,
tbl1.valid_from as label3,
sum(tbl1.column5) as label4
from oratable1 tbl1,
oratable2 tbl2
where whereclause1
.
and whereclause5
group by otbl1.column1, tbl2.column2, tbl1.valid_from
)
;
disconnect from oracle;
quit;
endrsubmit;
tbl1.valid_from is imported into the SAS-table as Example: 05DEC2003:00:00:00
However, we would like to store tbl1.valid_from in the format: 05122003 = ddmmyyyy
Any suggestions most welcome.
Kind regards
Karlo
meistertools@gmx.net