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;

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 3 replies
  • 1438 views
  • 0 likes
  • 4 in conversation