{"id":3318,"date":"2013-06-05T00:27:24","date_gmt":"2013-06-05T05:27:24","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=3318"},"modified":"2013-06-05T02:51:08","modified_gmt":"2013-06-05T07:51:08","slug":"success-with-sas-web-editor","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/success-with-sas-web-editor\/","title":{"rendered":"Success! With SAS Web Editor"},"content":{"rendered":"<p>My saga on uploading and reading an older data set into SAS Web Editor<\/p>\n<p><strong>1. Use FTP to upload<\/strong><\/p>\n<p>So, I did get my data uploaded to SAS Web Editor using ftp.  Little hint here, if you are using Filezilla and having trouble connecting, check to make sure that Filezilla is not using sftp.  Sometimes in the box labeled Host it will be prefaced with sftp   as in sftp:\/\/sascloudftp  etc. Remove the s so it just says, for example, ftp:\/\/sascloudftp.sas.com .  I<a href=\"http:\/\/www.thejuliagroup.com\/blog\/?p=2619\"> wrote about that previously <\/a>so I&#8217;m not repeating myself here.<\/p>\n<p><strong>2. Use PROC CPORT to export the formats<\/strong><\/p>\n<p>This is not always necessary but IF, as I mentioned yesterday, you have a problem reading the formats, this is your next step and thanks to Tom Edds from SAS for suggesting it. One thing PROC CPORT allows you to do is transfer data sets from older versions of SAS to newer ones.<\/p>\n<p><em>Run this program on your desktop (assuming the data are located on your Windows machine).<\/em><\/p>\n<p>FILENAME trans &#8220;C:\\Users\\AnnMaria\\Documents\\oldpeople\\sasdata\\trans&#8221; ;<br \/>\nLIBNAME  in &#8220;h:\\sasdata&#8221; ;<br \/>\nPROC CPORT LIBRARY= in FILE = trans MEMTYPE = CATALOG ;<\/p>\n<p>The FILENAME statement specifies where you want your transport file written, the LIBNAME statement is where your format catalog is located.<\/p>\n<p>So, this created a transport file to upload.<\/p>\n<p><strong>3. USE PROC CIMPORT to import the formats<\/strong><\/p>\n<p><em>Run this program on SAS Web Editor<\/em><\/p>\n<p>FILENAME mydata &#8220;\/courses\/myuniv\/dir\/otherdir\/trans&#8221; ;<br \/>\nLIBNAME test &#8220;~\/Projects\/oldpeople\/sasdata\/formats\/ &#8221; ;<br \/>\nPROC CIMPORT LIBRARY = test INFILE =  mydata ;<\/p>\n<p>The FILENAME statement refers to the file you created in the previous step.<\/p>\n<p>The LIBNAME statement is where you want the formats written. This directory must already exist.<\/p>\n<p><strong>4. Now you&#8217;re ready to access your data using SAS Web Editor<\/strong><\/p>\n<p>LIBNAME in   &#8220;\/courses\/myuniv\/dir\/otherdir\/&#8221; access=readonly;<br \/>\nLIBNAME saslib &#8220;~\/Projects\/oldpeople\/sasdata\/formats\/ &#8221; ;<br \/>\nOPTIONS FMTSEARCH = (saslib) ;<\/p>\n<p>The first LIBNAME statement is the course directory where you uploaded your <strong>data<\/strong> .<\/p>\n<p>The second LIBNAME statement is the folder in the Projects folder where you stored the <strong>formats<\/strong>. You could put them in a subdirectory of the same course directory where you uploaded your data. You could put them almost anywhere, really.<\/p>\n<p>OPTIONS FMTSEARCH =   tells SAS where to search for the formats it expects.<\/p>\n<p>&nbsp;<\/p>\n<p>P.S. Thanks to Tom Edds from SAS for suggesting the cport\/cimport .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My saga on uploading and reading an older data set into SAS Web Editor 1. Use FTP to upload So, I did get my data uploaded to SAS Web Editor using ftp. Little hint here, if you are using Filezilla and having trouble connecting, check to make sure that Filezilla is not using sftp. Sometimes&#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-3318","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\/3318","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=3318"}],"version-history":[{"count":3,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/3318\/revisions"}],"predecessor-version":[{"id":3320,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/3318\/revisions\/3320"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=3318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=3318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=3318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}