Help using Base SAS procedures

CONVERTING a ".sas" file into ".dat" file

Reply
N/A
Posts: 0

CONVERTING a ".sas" file into ".dat" file

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
Super Contributor
Posts: 345

Re: CONVERTING a ".sas" file into ".dat" file

Posted in reply to deleted_user
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.
Ask a Question
Discussion stats
  • 1 reply
  • 124 views
  • 0 likes
  • 2 in conversation