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;
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.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.