{"id":5347,"date":"2017-02-19T23:13:35","date_gmt":"2017-02-20T04:13:35","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=5347"},"modified":"2017-02-19T23:16:23","modified_gmt":"2017-02-20T04:16:23","slug":"sas-studio-dude-wheres-my-data-set","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/sas-studio-dude-wheres-my-data-set\/","title":{"rendered":"SAS  studio \u2013 dude, where&#8217;s my data set?"},"content":{"rendered":"<p>Working on some fun things \u00a0using \u00a0SAS Studio, so, expect a number of short posts over the next few days. Last time, I talked about the utilities and how easy it is to import an Excel file. Now let&#8217;s say maybe you are not aUnix person \u00a0and you have no idea how exactly to code a LIBNAME statement \u00a0that is not on Windows. \u00a0Never fear, it&#8217;s super easy.<\/p>\n<p>Right click on the folder where you want to save your data set. From \u00a0the \u00a0menu that appears, select the last choice which is &#8216;properties&#8217;.<\/p>\n<p>A window will come up that shows the name of your folder and its location, it&#8217;s easy to spot because it&#8217;s right next to the word Location. It will look something like this:<\/p>\n<p>\/home\/your_name\/data_analysis_examples<\/p>\n<p>to save your data you have uploaded an Excel file and imported into \u00a0SAS, remember that the files were saved in the work directory and named import, import 1 etc.If I wanted to \u00a0sort those data sets and then merge them together into a permanent data set, I&#8217;d do it in the exact same way as if I was using Windows. The only thing different is the LIBNAME statement, as you can see below.<\/p>\n<p>LIBNAME\u00a0in &#8220;\/home\/your_name\/data_analysis_examples&#8221;;<\/p>\n<p>Proc sort data = work.import;<br \/>\nBy username;<\/p>\n<p>Proc sort data = work.import1;<br \/>\nBy username;<br \/>\ndata in.crossroads ;<br \/>\nmerge work.import work.import1;<br \/>\nBy username;<br \/>\nrun;<\/p>\n<p>If, later on, I want to use that data set in a program, again I would do it exactly the same as in Windows and the only thing different would be my LIBNAME.<\/p>\n<p>&nbsp;<\/p>\n<p>LIBNAME\u00a0in &#8220;\/home\/your_name\/data_analysis_examples&#8221;;<\/p>\n<p>&nbsp;<\/p>\n<p>Proc means data = in.Crossroads;<\/p>\n<p>Run;<\/p>\n<p>Completely random fact, unrelated to SAS studio, or maybe it is related, \u00a0I hurt my arm again, so I have been writing my SAS programs using Dragon voice recognition software. \u00a0If you are going to use SAS studio on a Mac, you should be aware that Dragon does not work on Firefox on the Mac so open up Chrome if you want to use voice recognition software, or at least the software from Dragon. This has nothing to do with SAS specifically.<\/p>\n<p><a href=\"http:\/\/www.7generationgames.com\/products\/\">\u00a0Support My Day Job! \u00a0Buy Games That Teach Social Studies And Math And Have Fun! (You can even get Making Camp for free!\u00a0<\/a><\/p>\n<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2016\/09\/BUY-Banner-copy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5233\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2016\/09\/BUY-Banner-copy.png\" alt=\"Buy our games\" width=\"450\" height=\"500\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2016\/09\/BUY-Banner-copy.png 450w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2016\/09\/BUY-Banner-copy-270x300.png 270w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Working on some fun things \u00a0using \u00a0SAS Studio, so, expect a number of short posts over the next few days. Last time, I talked about the utilities and how easy it is to import an Excel file. Now let&#8217;s say maybe you are not aUnix person \u00a0and you have no idea how exactly to code&#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-5347","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\/5347","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=5347"}],"version-history":[{"count":2,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/5347\/revisions"}],"predecessor-version":[{"id":5349,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/5347\/revisions\/5349"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=5347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=5347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=5347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}