I am trying to get a data from the previous table using from statement but getting error. Please suggest experts.
proc sql;
create table Test AS
Select
Account_code
From work.'foreign address'n;
quit;
proc sql;
create table Add_repcode as
select a.*,
b.rep_code,
From Test
inner join p2scflow.debt as b on a.Account_code= b.Account_code;
quit;
Getting this error
30 proc sql;
31 create table Add_repcode as
32 select a.*,
33 b.rep_code,
34 From Test
_________________
79
ERROR 79-322: Expecting a FROM.
35 inner join p2scflow.debt as b on a.account_code = b.account_code ;
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
36 quit;