BookmarkSubscribeRSS Feed
3 REPLIES 3
Reeza
Super User

Post your code as text really helps. 

 

Your order of statements in the code:

 

  1. Create a file reference to your Excel file - note this does not import file, just creates a pointer to the file
  2. INFILE statement - not in data step, does nothing
  3. INPUT statement - not in data step, does nothing
  4. PRINT data - no data read in
  5. Plot data - but no data has been read in
  6. Import Excel file and save it as IMPORT1
  7. Display contents of Import1 data set
  8. Opens Import1 table to view it.

 

FYI - adding comments to your code as to what you think each line does (as above helps you avoid these errors.

 

Excel files are imported using PROC IMPORT. 

 

To resolve:

Remove steps 2/3

Move steps 6/7/8 to after step 1. 

 

In the future please post your code as text not images. 

 


@Sharath19 wrote:

Screenshot 2022-06-10 at 12.14.20 PM.png

Screenshot 2022-06-10 at 12.14.31 PM.png

  


 

Reeza
Super User
And whatever tutorial you're using is old, I'd highly recommend finding a newer one. GPLOT is not recommended these days. SAS offers free introductory training classes on it's official training page.
tom_grant
SAS Super FREQ
Delete lines 10 & 11
Move lines 12-15 after line 26

This should get your program to run & produce a listing of data & a scatterplot of minutes vs num_mach

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 449 views
  • 0 likes
  • 3 in conversation