{"id":5333,"date":"2017-02-07T02:40:04","date_gmt":"2017-02-07T07:40:04","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=5333"},"modified":"2017-02-07T02:49:43","modified_gmt":"2017-02-07T07:49:43","slug":"sas-studio-import-excel-with-tasks-utilities","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/sas-studio-import-excel-with-tasks-utilities\/","title":{"rendered":"SAS Studio &#8211; Import Excel with Tasks &#038; Utilities"},"content":{"rendered":"<p>It&#8217;s been about a year since I last looked at SAS Studio much\u00a0 &#8211;<\/p>\n<p>OKAY, LISTEN UP PEOPLE<\/p>\n<p>In my previous life, I taught for years at a small liberal arts college, with under 2,000 students. I also taught at a tribal community college with less than 500 students. In neither of those situations did we have the funding to pay for expensive software. <a href=\"http:\/\/www.sas.com\/en_us\/industry\/higher-education\/on-demand-for-academics.html\">SAS Studio is FREE. I could have really used this when I was teaching at those small schools. Check it out. <\/a><\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/college_students.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5334\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/college_students.jpg\" alt=\"students\" width=\"410\" height=\"383\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/college_students.jpg 410w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/college_students-300x280.jpg 300w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><\/a><\/p>\n<p>So, it&#8217;s free, but I don&#8217;t teach that often because I have a day job as president of The Julia Group where clients want me to do some much stuff we quit taking new clients years ago and<a href=\"http:\/\/www.7generationgames.com\/\"> also president of 7 Generation Games where they want me to do more stuff<\/a>.<\/p>\n<p>The last class I taught, we used SAS on a remote desktop &#8211; which I liked a lot. So, yes, no SAS Studio for me for a while.<\/p>\n<p>In case, like me, you are more a programming type and haven&#8217;t been too pointy-clicky, perhaps you missed the TASKS AND UTILITIES. Well, don&#8217;t.<\/p>\n<p>Let&#8217;s say you want to import a file from Excel into SAS. First, upload it by clicking on the folder where you want it stored and then clicking the upload button at the top left of your screen.<\/p>\n<p>Look to the bottom left of your screen and you will see this. Well, you&#8217;ll see the Tasks and Utilities anyway, the stuff above it is files for class examples.<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.04.18-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5335\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.04.18-PM.png\" alt=\"Tasks and utilities menu\" width=\"356\" height=\"118\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.04.18-PM.png 356w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.04.18-PM-300x99.png 300w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><\/a><\/p>\n<p>Click on the arrow next to Tasks and Utilities and you&#8217;ll find all kinds of cool stuff.\u00a0 Click the arrow next to utilities and pick IMPORT DATA<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.25.52-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5336\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.25.52-PM.png\" alt=\"upload window\" width=\"450\" height=\"219\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.25.52-PM.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.25.52-PM-300x146.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>Drag the file you uploaded into the window on the right and, voila!<\/p>\n<p>There you go, your Excel file is imported into SAS. You can see the code in the CODE window. DON&#8217;T FORGET TO CLICK THE LITTLE RUNNING GUY AT THE TOP OF YOUR SCREEN TO RUN THIS.<\/p>\n<p>Note that the file is named WORK.IMPORT because you&#8217;ll need that name for the next task, but that&#8217;s next time because I have to go back to work.<\/p>\n<p>\/* Generated Code (IMPORT) *\/<br \/>\n\/* Source File: testit.xlsx *\/<br \/>\n\/* Source Path: \/home\/annmaria.demars\/homework *\/<br \/>\n\/* Code generated on: 2\/6\/17, 11:27 PM *\/<\/p>\n<p>%web_drop_table(WORK.IMPORT);<\/p>\n<p>FILENAME REFFILE &#8216;\/home\/annmaria.demars\/homework\/testit.xlsx&#8217;;<\/p>\n<p>PROC IMPORT DATAFILE=REFFILE<br \/>\nDBMS=XLSX<br \/>\nOUT=WORK.IMPORT;<br \/>\nGETNAMES=YES;<br \/>\nRUN;<\/p>\n<p>PROC CONTENTS DATA=WORK.IMPORT; RUN;<\/p>\n<p>%web_open_table(WORK.IMPORT);<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.36.53-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5337\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.36.53-PM.png\" alt=\"Screen Shot 2017-02-06 at 11.36.53 PM\" width=\"450\" height=\"396\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.36.53-PM.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-06-at-11.36.53-PM-300x264.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>SAS nicely runs the PROC CONTENTS, too, so you end up with a table telling you the contents of your new data set.<\/p>\n<p>Once you have your data imported, you can use the TASKS menu to complete (what else) statistical tasks. I wrote about those in some other posts below:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.thejuliagroup.com\/blog\/?p=4984\">Pointing and clicking to find prevalence<\/a><\/li>\n<li><a href=\"http:\/\/www.thejuliagroup.com\/blog\/?p=4572\">Distribution analysis<\/a><\/li>\n<\/ul>\n<p>My point is, there is a lot of stuff under that little tab and you should check it out. Also, if you are a small school, SAS Studio is an awesome resource you can get for free and I bet you could use it.<\/p>\n<hr \/>\n<p>Support my day job! Learn about Ojibwe history and culture. Practice multiplication and division<\/p>\n<p><strong>FREE GAME FOR iPad or Android tablets<\/strong><\/p>\n<p><a class=\"grouped_elements\" title=\"wig wam in snow\" href=\"http:\/\/www.7generationgames.com\/7gen\/wp-content\/uploads\/2014\/09\/outsidewigwam-e1484787892131.jpg\" rel=\"tc-fancybox-group10035\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2530 tc-smart-loaded\" src=\"http:\/\/www.7generationgames.com\/7gen\/wp-content\/uploads\/2014\/09\/outsidewigwam-e1484787892131.jpg\" alt=\"wig wam in snow\" width=\"300\" height=\"181\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.7generationgames.com\/products\/\">Click over here to find links to Making Camp in the App Store or on Google Play. <\/a>Yes, it\u2019s free.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been about a year since I last looked at SAS Studio much\u00a0 &#8211; OKAY, LISTEN UP PEOPLE In my previous life, I taught for years at a small liberal arts college, with under 2,000 students. I also taught at a tribal community college with less than 500 students. In neither of those situations did&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,8],"tags":[],"class_list":["post-5333","post","type-post","status-publish","format-standard","hentry","category-software","category-technology"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/5333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/comments?post=5333"}],"version-history":[{"count":3,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/5333\/revisions"}],"predecessor-version":[{"id":5343,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/5333\/revisions\/5343"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=5333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=5333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=5333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}