DATA Step, Macro, Functions and more

SQL Query keeps running

Reply
Regular Learner
Posts: 1

SQL Query keeps running

[ Edited ]

Hi All,

I am running one SQl query. The data is containing only ~90k observations. However, the code keeps on running without going to the next step. Can anybody suggest way to speed up the code. Below attached is the query which I am running:

 

 


proc sql;
    create table nr&otfile as
    select a.*,b.bucket as bucket_tmp,b.cur_bal as cur_bal_tmp,
        b.tot_prin as tot_prin_tmp,b.ac_no as ac_tmp
    from ajmb2.nr&otfile a left join ncir&otfile b 
    on a.ac_no = b.ac_no;
  quit;

 

Super User
Posts: 19,869

Re: SQL Query keeps running

Posted in reply to sauravjha90

How many records in each table? Are both stored in the same location, I notice ones in a work library and one is in a ajmb2 library, is the second a server of some kind?

Also are you sure your macro variables are assigned?

Ask a Question
Discussion stats
  • 1 reply
  • 230 views
  • 0 likes
  • 2 in conversation