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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1453 views
  • 0 likes
  • 2 in conversation