Hi community, I'm not sure how to answer this question. It appears nothing is wrong but I'd like to hear your advice. Your help is much appreciated!
What, if anything, is wrong with the following programs?
data p1; set mast; if sector='a4' then output; data p2; set me; if sector=29 then output; data sects; merge p1 p2; by sector; proc print noobs; run;
The program might run. But if SECTOR is really character in one dataset and numeric in the other then the data step with the MERGE statement will fail.
The program might run. But if SECTOR is really character in one dataset and numeric in the other then the data step with the MERGE statement will fail.
Can you please start using subject lines that are more reflective of your question?
I think you have about 4 questions all with the same/similar vague subject line of 'anything wrong with this program'.
And please mark the questions as solved when they are, identifying the correct solution for future users.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.