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;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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