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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.