BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DavidCaliman
Calcite | Level 5

It worked fine.

Thanks a lot everybody.

Fugue
Quartz | Level 8

Since you are using an insert clause, SAS may be passing the entire table to SAS for processing. I'm not familiar with SAS DI, but in foundation SAS you can use SASTRACE= options to determine where the processing is occurring.

DavidCaliman
Calcite | Level 5

With the sastrace option I really identified that SAS is sending two SQL statements to Oracle.

I still can not solve the problem.

Patrick
Opal | Level 21

You are aware that the SASTRACE option shows you in the log what SQL statements SAS sends to the database to test if they are executable there. Then further down in the log it tells you which SQL actually had been sent to the database for processing.

So if you say there are 2 SQL's sent: Is this just your interpretation of the SASTRACE log messages generated or do you actually see two running SQL's on the database side?

DavidCaliman
Calcite | Level 5

I'm looking to the Oracle v$sqlarea view. And there are running the two SQLs.

Reeza
Super User

You may want to check with tech support. In SAS there are issues when working across DB's, such as loading entire tables before processing. In a straight insert I can't see why the issue would occur.

Peter_C
Rhodochrosite | Level 12

David

if you share with us, the whole procedure code and all the sas log generated, including rhe output from sastrace, we might be able to add some more insight.

peterC

Peter_C
Rhodochrosite | Level 12

Have a look at the SAS system option DBIDIRECTEXEC

DavidCaliman
Calcite | Level 5

Using the option DBIDIRECTEXEC the problem persists.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 24 replies
  • 4306 views
  • 0 likes
  • 7 in conversation