data cars93ff2; infile '/folders/myfolders/cars93subfree.txt' termstr=CRLF; length Manufacturer $10; input Manufacturer $ Type $ Price MPG_city MPG_highway Horsepower Origin $; run; proc print data=cars93ff2; run;
Add the firstobs option to your infile statement. i.e.:
infile '/folders/myfolders/cars93subfree.txt' termstr=CRLF firstobs=2;
Art, CEO, AnalystFinder.com
Add the firstobs option to your infile statement. i.e.:
infile '/folders/myfolders/cars93subfree.txt' termstr=CRLF firstobs=2;
Art, CEO, AnalystFinder.com
data cars93ff2; infile '/folders/myfolders/cars93subfree.txt' termstr=CRLF; length Manufacturer $10; input Manufacturer $ Type $ Price MPG_city MPG_highway Horsepower Origin $; run; proc print data=cars93ff2; run;
I succeeded, thanks! I did add firstobs before, but right after the path, now I changed the place and it worked! Thanks so much!
What does your log show?
@jc3992 wrote:
data cars93ff2; infile '/folders/myfolders/cars93subfree.txt' termstr=CRLF; length Manufacturer $10; input Manufacturer $ Type $ Price MPG_city MPG_highway Horsepower Origin $; run; proc print data=cars93ff2; run;
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!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.