sas merge nomatch conditional for only one table -


i have 4 tables:

  1. one list of users did sth (post or reply) in march (field email1)
  2. one replies of users made in jan (several fields need use mailfrom_address)
  3. another replies made in feb (several fields need use mailfrom_address)
  4. and posting of users jan, feb , march (this table has email1)

i need users table 1 started doing sth in march. means need exclude table 1 users in table 2 or table 3 or table 4 (but month jan & feb.. , here's issue: condition on table 4).

i started code.

data lib.all_emails_march_start (keep= email1); merge lib.all_emails_march (in=in1)  lib.replies_ene_2 (rename= (mailfrom_address=email1)) (in=in2) lib.replies_feb_2 (rename= (mailfrom_address=email1)) (in=in3) lib.listings_5 anomes in ('2014-01', '2014-02') (in=in4); email1; if (in1=1 , in2=0 , in3=0 , in4=0) output lib.all_emails_march_start; run; 

but condition should table 4 (listings_5) , variable (anomes) isn't in other tables (1 3), don't know how this.

i in 1 stp, , not create first table listings jan , feb. please give me ideas?

thanks!!!! :d :d :d

proc sql more suited this...

 proc sql ;   create table lib.all_emails_march_start   select *   lib.all_emails_march    user not in(select distinct user lib.replies_ene_2)     , user not in(select distinct user lib.replies_feb_2)     , user not in(select distinct user lib.listings_5                      anomes in ('2014-01', '2014-02'))   ; quit ; 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -