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

proc sql;
   title 'Updated MLPs';
   select * from WORK.IDENTIFY_INACTIVE_MLP_YESTERDAY
   except    
   select * from WORK.MLP_RECORDS_2_ADD_UPDATE;
  

Need the results to create a table?!

 

1 ACCEPTED SOLUTION

Accepted Solutions
mohamed_zaki
Barite | Level 11

proc sql;
CREATE TABLE except AS

select * from WORK.IDENTIFY_INACTIVE_MLP_YESTERDAY
except    
select * from WORK.MLP_RECORDS_2_ADD_UPDATE;
  

View solution in original post

3 REPLIES 3
Reeza
Super User

Then tell it to create a table 😉

 

proc sql;
   title 'Updated MLPs';

create table want as select * from (
   select * from WORK.IDENTIFY_INACTIVE_MLP_YESTERDAY
   except    
   select * from WORK.MLP_RECORDS_2_ADD_UPDATE);

mohamed_zaki
Barite | Level 11

proc sql;
CREATE TABLE except AS

select * from WORK.IDENTIFY_INACTIVE_MLP_YESTERDAY
except    
select * from WORK.MLP_RECORDS_2_ADD_UPDATE;
  

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Please note, the title is not needed as there is no printed output with create table, and please finish code blocks:

proc sql;
   create table WANT as
   select * from WORK.IDENTIFY_INACTIVE_MLP_YESTERDAY
   except    
   select * from WORK.MLP_RECORDS_2_ADD_UPDATE;
quit;

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 3 replies
  • 1532 views
  • 0 likes
  • 4 in conversation