Hello. I am new too SAS. I am trying to combine the two tables below to include The domains from the Domains table that are equivalent to the question numbers that are on both tables. I keep getting the error below which says the the columns do not exist when I look at the tables I am pretty sure I am labeling them correctly? Any help would be appreciated. Thanks.
%LET A = A;
TITLE "FINAL FORM";
PROC SQL;
CREATE TABLE FINAL_FORM_&A AS
SELECT Student, Results&A.QuestionNum, Scores, Domains_Form&A.DomainNum, Form
FROM Results&A INNER JOIN Domains_Form&A
ON Results&A.QuestionNum = Domains_Form&A.DomainNum;
QUIT;
PROC PRINT DATA=FINAL_FORM_&A;
RUN;
ERROR: The following columns were not found in the contributing tables: Domains_FormADomainNum, ResultsAQuestionNum.
That worked. Thank you.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.