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?
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.