BookmarkSubscribeRSS Feed
muledivyaswapna
Calcite | Level 5

PROC IMPORT DATAFILE="</folders/myfolders/sasuser.v94/products.xlsx.xlsx>"
OUT=WORK.products
DBMS=XLSX
REPLACE;
RUN;

/** Print the results. **/

PROC PRINT DATA=WORK.products; RUN;

                                               

          And run the program then display log window in

72 PROC PRINT DATA=WORK.products; RUN;
ERROR: File WORK.PRODUCTS.DATA does not exist.
pllllllllllllllllllllllllllllllllllz tell me the solution

 

3 REPLIES 3
Kurt_Bremser
Super User

Use more descriptive subjects in the future. Using "sas" in the SAS communities is not descriptive at all.

 

The failure of the proc print means that the proc import can't have worked. Please post the complete log, following the advice in https://communities.sas.com/t5/help/faqpage/faq-category-id/posting?nobounce for posting code/logs.

 

I guess that

products.xlsx.xlsx

should have been

products.xlsx
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Well, the error is telling you that there is no dataset in work called products.  This is likely because the proc import step has failed for some reason.  It is a good idea to post the full log around the item in question, you will likely see error messages after proc import as well.  Also please avoid coding ALL IN CAPITALS as it really makes it hard to read.

Akas_wankha
Obsidian | Level 7

Please check if your file imported successfully or not..

 

or Try :- 

proc import
datafile="folders\myfolders\sasuser.v94\products.xlsx"
out=work.products
dbms=xlsx
replace;
run;

 

proc print data=products;
run;

 

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

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
  • 874 views
  • 0 likes
  • 4 in conversation