BookmarkSubscribeRSS Feed
Saleem
Calcite | Level 5

data dataset name;

merge &lib_1..bd_mis_CH_ACCT_MAST 
(in=a keep= cod_acct_no cod_cust nam_cust_shrt
cod_cc_brn cod_prod bal_book
cod_ccy cod_acct_stat DAT_ACCT_OPEN )
&lib_1..BD_BA_CUST_ACCT_AO_LOB_XREF (in=d keep= cod_lob COD_AO_BUSINESS cod_acct_no );
by cod_acct_no; if a and cod_acct_stat not in ('1','5','11') and COD_LOB in (22,31);
run;

 

How To write same code in proc sql.

 

Thanks in Advance

2 REPLIES 2
PaigeMiller
Diamond | Level 26

@Saleem 

Please go back and edit your original post to provide a meaningful title that describes your problem. A title of SAS is not meaningful because all questions here are about SAS. This will help you get a faster and better answer, and will help everyone find posts of interest.

--
Paige Miller
AMSAS
SAS Super FREQ

In addition to @PaigeMiller comments also consider

 

  1. Supply sample data, both what you have (input) and what you want (output)
  2. Format your code so it is easier to read 
  3. What have you tried already

If you provide sample data (see Data2DataStep Maco instructions) and make an attempt at the code first, you'll get a faster response. 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 509 views
  • 1 like
  • 3 in conversation