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?

 

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

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
  • 292 views
  • 0 likes
  • 2 in conversation