BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jc3992
Pyrite | Level 9
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;
1 ACCEPTED SOLUTION

Accepted Solutions
art297
Opal | Level 21

Add the firstobs option to your infile statement. i.e.:

	infile '/folders/myfolders/cars93subfree.txt' termstr=CRLF firstobs=2;

Art, CEO, AnalystFinder.com

 

View solution in original post

3 REPLIES 3
art297
Opal | Level 21

Add the firstobs option to your infile statement. i.e.:

	infile '/folders/myfolders/cars93subfree.txt' termstr=CRLF firstobs=2;

Art, CEO, AnalystFinder.com

 

jc3992
Pyrite | Level 9
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!

Reeza
Super User

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;

 

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2432 views
  • 2 likes
  • 3 in conversation