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

Hi,

 

I have written the following code but I have two error messages (highlighted in red below) when:

(1) trying to reference the dataset in the proc sql left join and

(2) when i try to reference the proc sql create table to use for the proc freq.

Can someone please help me out so that I can correctly reference the dataset for the proc sql section and how to reference the table that has been created using proc sql in order to comlete the proc freq section? Thanks.

 

data account_analysis;
set rc.accounts_missing;
run;

 

proc sql;
create table portfolio_subsegment_split as
select a.account_ID, a.month_end, a.utilisation, b.portfolio_subsegment
from data=account_analysis as a
left join mod.output_v_2019 as b
on a.account_id = b.account_id and a.month_end = b.month_end
;
quit;

 

proc freq data=portfolio_subsegment_split;
tables portfolio_subsegment*utilisation / nocum out=want;
run;

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Astounding
PROC Star
Remove 5 characters from PROC SQL:

data=

That should correct both errors.

View solution in original post

2 REPLIES 2
Astounding
PROC Star
Remove 5 characters from PROC SQL:

data=

That should correct both errors.
jeremy4
Quartz | Level 8
Thanks for your help!

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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