DATA Step, Macro, Functions and more

DI Studio - Correlated reference error

Reply
N/A
Posts: 1

DI Studio - Correlated reference error

Hi All,
I created a job in DI studio. I am joining 3 tables in that job. That job has one SQL JOIN transform. After running this particular transform, when i try to see the data in the temporary target table, it is throwing the below error. Can any one provide solution for this or what will be the cause of the error?

Error is

Correlated reference to column "A" is not contained within a subquery
Super User
Posts: 9,691

Re: DI Studio - Correlated reference error

Can you paste the SQL code generated by DI studio ?

From you log, It looks like the join KEY -- A is not in one of these three tables.

Ksharp

SAS Employee
Posts: 27

Re: DI Studio - Correlated reference error

PRETHESH, could you also please post the log of the job too.

thanks,

Daryl

Super User
Posts: 5,260

Re: DI Studio - Correlated reference error

My guess is that you are mixing inner and outer joins.

in these situations is quite easy to create an invalid join syntax (which I think DI Studio should help to identify...)

Data never sleeps
Frequent Contributor
Posts: 82

Re: DI Studio - Correlated reference error

I have solved this problem by putting the inner join at the end after all the outer joins ....although I dont know why the error happens.

Ask a Question
Discussion stats
  • 4 replies
  • 1417 views
  • 0 likes
  • 5 in conversation