Hi,
I am confused with a following statement from somebody code as I do not understand the syntax (never worked with SAS before):
proc sql;
connect to odbc as ...;
* Transient table is created and loaded
execute(
create table &TmpSchema..G
(ID CHAR(30)
,tag char (3)
,Mydate date
)
in "&twotblspc"
not logged initially
)by Mconnect;
execute (
insert into &TmpSchema..G
select
.
.
.
) byMconnect;
The only thing I got is a create table statement and load staff into that . Also I found out in the help on-line that Execute statement push generated statement (create table and select?) into the queue and returns
1.I wonder why execute is needed at all to create a table in this case or to insert staff into it?
2.Also I have no clue what in "&twotblspc" means in this context and what NOT LOGGED INITIALLY means
Could you please explain me?
Thank you very much
Estersita
I am confused with a following statement from somebody code as I do not understand the syntax (never worked with SAS before):
proc sql;
connect to odbc as ...;
* Transient table is created and loaded
execute(
create table &TmpSchema..G
(ID CHAR(30)
,tag char (3)
,Mydate date
)
in "&twotblspc"
not logged initially
)by Mconnect;
execute (
insert into &TmpSchema..G
select
.
.
.
) byMconnect;
The only thing I got is a create table statement and load staff into that . Also I found out in the help on-line that Execute statement push generated statement (create table and select?) into the queue and returns
1.I wonder why execute is needed at all to create a table in this case or to insert staff into it?
2.Also I have no clue what in "&twotblspc" means in this context and what NOT LOGGED INITIALLY means
Could you please explain me?
Thank you very much
Estersita