BookmarkSubscribeRSS Feed
deleted_user
Not applicable
hello ,

plz could you tell me how to convert a ".sas" file into ".dat" file .I used the code -

libname 'c:\Cwa';
data = 'c:\Cwa\laptop_review.sas';
set laptop_review;
run;

log -

ERROR: 'c:\Sas' is not a valid SAS name.
ERROR: Error in the LIBNAME statement.
125 data = 'c:\Sas\laptop_review.sas';
----
180

ERROR 180-322: Statement is not valid or it is used out of proper order.

126 set laptop_review;
---
180

ERROR 180-322: Statement is not valid or it is used out of proper order.

regards ,
markc
1 REPLY 1
andreas_lds
Jade | Level 19
Your problem can easily be solved after reading the documentation available on the SAS website:
http://support.sas.com/documentation/cdl/en/connref/61908/HTML/default/connreflibdictent.htm

I recommend starting with "SAS 9.2 Language Reference: Concepts". The chapters "DATA Step Concepts" and "SAS Files Concepts" will help you understanding the very basics of SAS.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 1503 views
  • 0 likes
  • 2 in conversation