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?

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
  • 361 views
  • 0 likes
  • 3 in conversation