BookmarkSubscribeRSS Feed
jainmo
Calcite | Level 5

I am working with oracle view. when I open view in toad or developer have to refresh it twice ot thrice to see data.

 

In my sas code, I have automate the code bu now for last 2 -3 week its not getting refresh. I did create do loop but still not get result. I included this dataset becuase earlier I was getting 0 observation but then when I did this it worked but now suddenly getting 0 observation.

 

ex 

 

data x;

set t;

do i=1to 5;

output;end;

run;

 

 

proc sql;

create table t as 

select * from x;

quit;

 

2 REPLIES 2
SASKiwi
PROC Star

Please post the complete SAS log of your program reading the Oracle data. The code you have posted doesn't read Oracle at all.

Patrick
Opal | Level 21

From what you describe and given you've also observed similar behavior when using toad or SQL Developer this feels very much not like a SAS issue but something to be solved on the DB side. If you can't investigate yourself then you need eventually to talk to a Oracle DBA.

 

I've worked with Oracle before but a view that needs multiple refreshes until it returns the expected data is nothing I've ever encountered. 

Is this a "normal" view or by any chance a materialized view?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 784 views
  • 0 likes
  • 3 in conversation