SAS Enterprise Guide: Cut and Paste Excel Data into SAS Dataset

February 22, 2012
By

Yes, you can import a spreadsheet into SAS Enterprise Guide and it’s super simple. However, there are times when I have been building datasets from several pieces of data and need to scrape bits and pieces from here and there to add to my dataset.  Come into my lab … now that I’m a data scientist! Careful, don’t knock over any of my beakers or touch my experiments  – you might cause an explosion.

Create the Framework

Let’s get started on this experiment. To build your new dataset just decide how you want it to look – how many columns, what they will hold, and so on. Here’s how you do it in SAS Enterprise Guide:

  1. Go to the File > New > Data.  A New Data window appears.
  2. In the Name field, type the name of your new dataset and then select the library you want it in. This needs to be a local library unless you have permissions to create a dataset in the metadata library. [A completely different subject ... ]
  3. The next window allows you to create the columns.  You can edit Column Properties to change the name, label, format, informat, and length.  You can add and delete columns.  Obviously – you can be your own little wizard and conjure up the dataset of your dreams!

eg create a new table SAS Enterprise Guide: Cut and Paste Excel Data into SAS Dataset

Now for Some Excel Tricks

So, check it out.  Some of my data is in Excel. All I have to do is cut and paste it into the new dataset.  SAS Enterprise Guide understands and accepts the import.  Wow … I actually was impressed the first time I tried this. I halfway expected everything to just go into one cell – but it grabbed it.  You can also edit your dataset directly (if allowed by your administrator).  [Again another different subject ... ]

eg create a new table2 SAS Enterprise Guide: Cut and Paste Excel Data into SAS Dataset

 

Join Angela and Me on Friday!

Angela and I will be participating in an E-Chat with the All Analytics editor, Beth Schultz this Friday.  All Analytics is giving away a copy of the Building Business Intelligence with SAS book to two lucky chat participants. Drop by now and leave a question or comment for us at All Analytics now.  It’s a great site – lots of fun information.

Date: 24 Feb 2012 
Time: 2 PM EST

Click here for a reminder on Friday! Plus a free subscription to this blog!  Don’t worry – I won’t sell your name or send you anything other than this blog and an occasional announcement.

 SAS Enterprise Guide: Cut and Paste Excel Data into SAS Dataset Tricia Aanderud  (86 Posts)

Tricia Aanderud, president of And Data, Inc., provides SAS consulting services to corporations who need assistance understanding how to transform their data into meaningful charts, reports, and dashboards. Tricia has been an enthusiastic SAS user since 2002 and has presented papers at the SAS Global Forum and other industry conferences. Connect to her on LinkedIn or follow her on Twitter using one of the icons below:

Website SAS Enterprise Guide: Cut and Paste Excel Data into SAS DatasetTwitter SAS Enterprise Guide: Cut and Paste Excel Data into SAS DatasetLinkedin SAS Enterprise Guide: Cut and Paste Excel Data into SAS DataseteMail SAS Enterprise Guide: Cut and Paste Excel Data into SAS Dataset

0saves
Show me some love! If you enjoyed this post, leave a comment or subscribe to the free RSS feed to have future articles delivered to your feed reader. I respect your privacy - your email will not be shared, sold, bartered, given away, written on a bathroom wall ...

Tags: , ,



Latest Tweets

Twitter

Archives

February 2012
M T W T F S S
« Jan   Mar »
 12345
6789101112
13141516171819
20212223242526
272829  

x
Loading...