I use the same data, but the result is different. Who can tell me what wrong is.
Separate however you want. Just ensure that the program supplied can be executed.
Paste using the appropriate methods (see post by @mkeintz) and then run the text that you have pasted after copying it from the page.
Instead of attaching files, why not make it easier for the people whose help you are requesting? You can use the little Insert SAS Code or Insert Code icon to insert your sas programs. Then we could all see it without the attendant risk (and annoyance) of having to download.
As to your question. Please identify some differences (i.e. actual values) that you did not expect. And show us the sas log that came from running your programs.
Your programs don' t run properly. The data contains tabs and is not read as given.
How to solve the problem? It can't read .csv well. Should I seperate each datum with a comma?
A correctly structured CSV should have commas. CSV -> Comma Separated Values
Start with the errors in the order they appear, otherwise they propagate throughout your program.
If your file isn't a CSV, what is the delimiter?
Separate however you want. Just ensure that the program supplied can be executed.
Paste using the appropriate methods (see post by @mkeintz) and then run the text that you have pasted after copying it from the page.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.