BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

What's wrong with this script ? it work fine on the production server but not on the development server even if the tables exist.

 

proc sql;
create table test as
select contractVer.*
from cntrctDM.DIM_PL_CNTRCT_VER contractVer ;
quit;



ERROR: CLI prepare error: Cannot perform SELECT. This session does not have a current database. Call 'USE DATABASE', or use a 
qualified name.SQL statement: SELECT * FROM CONTRACTPL_DM.DIM_PL_CNTRCT_VER.
1 REPLY 1
ChrisNZ
Tourmaline | Level 20

 

Do both libname definitions include the database name? What about the ODBC driver definitions?

 

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 522 views
  • 0 likes
  • 2 in conversation