Data ds1;
Infile datalines;
Input id name$ sex$ age sa
MAHI F 21 7000
Run;
And the question is what exactly?
Best practice is to post code in a code or text box opened with the "running man" or </> icon above the message window. The text box will prevent the forum from reformatting code and possibly inserting/removing characters resulting in code that will not run or replaces some strings with odd characters such as bullet points.
Actual lines of data should be preceded by a CARDS; or DATALINES; statement with the semicolon.
If your inline data contains semicolons then use CARDS4; or DATALINES4; and end your data section with 4 semicolons.
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 save with the early bird rate—just $795!
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.