Yu Zhang
2006-12-20 23:00:09 UTC
proc sql noprint;
create table v_bma_tot as
select distinct(count(compl ) ) as compl_count ,
calculated compl_count / &tot as put(perc,??8.),
"("!!put(calculated perc,best.) !!'%)' as col2
from v_bma_exc2 ;
quit;
create table v_bma_tot as
select distinct(count(compl ) ) as compl_count ,
calculated compl_count / &tot as put(perc,??8.),
"("!!put(calculated perc,best.) !!'%)' as col2
from v_bma_exc2 ;
quit;
hello guys I am trying to generate variable for a table like this
proc sql noprint;
create table v_bma_tot as
select distinct(count(compl ) ) as compl_count ,
calculated compl_count / &tot as perc,
"("!!calculated perc!!'%)' as col2
from v_bma_exc2 ;
quit;
it is complaing that I can use !! only on character but if I am try to
change it char it is not letting me do it
proc sql noprint;
create table v_bma_tot as
select distinct(count(compl ) ) as compl_count ,
calculated compl_count / &tot as put(perc,??8.),
"("!!calculated perc!!'%)' as col2
from v_bma_exc2 ;
quit;
Any suggestions to do it one step
thanks for the help
proc sql noprint;
create table v_bma_tot as
select distinct(count(compl ) ) as compl_count ,
calculated compl_count / &tot as perc,
"("!!calculated perc!!'%)' as col2
from v_bma_exc2 ;
quit;
it is complaing that I can use !! only on character but if I am try to
change it char it is not letting me do it
proc sql noprint;
create table v_bma_tot as
select distinct(count(compl ) ) as compl_count ,
calculated compl_count / &tot as put(perc,??8.),
"("!!calculated perc!!'%)' as col2
from v_bma_exc2 ;
quit;
Any suggestions to do it one step
thanks for the help