10-04-2017 12:56 AM
Am completely new to SAS. I am on Windows version. Just trying to do a simple Linear Regression. Managed to save my excel file in myfolders. But unfortunately when I was trying to create the Linear Regression task, I accidentally clicked on 2 sample data (sets) from SAS. Now I can't seem to remove them and replace with my Excel data. I have managed to convert my Excel into ctl file. Is that OK? Please tell me how to remove the 2 data (sample SAS data files) and replace with my own data and let me know if the ctl file is ok to use. If not please guide me on how to convert to readable data file. Thank you. Any help would be greatly appreciated.
10-04-2017 02:38 AM
First, you need to import the Excel data to a SAS dataset. Then you can use this dataset in any analysis you want to do.
Either import into a WORK dataset (temporary) or to a library you created under myfolders (which would make the data permanent, ie persistent across SAS sessions). No need to remove other files beforehand.
10-04-2017 04:14 AM
10-04-2017 04:20 AM - edited 10-04-2017 04:20 AM
10-04-2017 04:18 AM
Are you using the Linear Regression Custom Task? If you are you simply select the small box to the right of the data set name and choose a new file. If you're a beginner I would strongly recommend using this approach as you can see how SAS builds the code to run the task which will help you enormously when you come to write freehand programs of your own.
Oh and @KurtBremser is of course absolutely correct - you need a SAS data set for this to work.