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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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