How do I make a small sample raw data (txt) file on my desktop and read it into SAS Studio using a FILENAME statement and the COLUMN INPUT METHOD?
For example, this is the raw data file (txt). I named it as joytp and I placed the file on my desktop. I want to read into SAS Studio:
2810 61 MOD F
2804 38 HIGH F
2807 42 LOW M
2816 26 HIGH M
2833 32 MOD F
2823 29 HIGH F
Can anyone tell me the code that I have to write before the below lines inorder to read the txt file above into SAS Studio:
input ID $ 1-4 Age 6-7 Actlevel $ 9-12 Sex $ 14;
run;
Are you using SAS University Edition?
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.