{"id":1288,"date":"2020-01-10T00:00:00","date_gmt":"2020-01-09T18:30:00","guid":{"rendered":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/sas-tutorial.html"},"modified":"2024-06-12T19:02:06","modified_gmt":"2024-06-12T13:32:06","slug":"sas-tutorial","status":"publish","type":"post","link":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/sas-tutorial.html","title":{"rendered":"SAS Tutorial for Beginners: What is &#038; Programming Example","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<h2>What is SAS?<\/h2>\n<p><strong>SAS<\/strong> is a command-driven statistical software suite widely used for statistical data analysis and visualization. SAS full form is Statistical Analysis Software. It allows you to use qualitative techniques and processes which help you to enhance employee productivity and business profits. SAS is also used for advanced analytics like business intelligence, crime investigation, and predictive analysis. SAS is pronounced as &#8220;SaaS.&#8221;<\/p>\n<p>In SAS, data is extracted &amp; categorized which helps you to identify and analyze data patterns. It is a software suite which allows you to perform advanced analysis, Business Intelligence, Predictive Analysis, data management to operate effectively in the competitive &amp; changing business conditions. Moreover, SAS is platform independent which means you can run SAS on any operating system either Linux or Windows.<\/p>\n<p>Compared to other <a href=\"\/https\/www.guru99.com\/business-intelligence-tools.html\" data-lasso-id=\"188831\">BI tools<\/a>, SAS provides extensive support to programmatically transform and analyze data, apart from using the drag and drop interface. This provides very granular control over data manipulation and analyzes which is its USP.<\/p>\n\n<style>.kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);background-color:#edf2f7;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);max-width:450px;}.kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-table-of-contents-title{font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-table-of-content-wrap .kb-table-of-content-list{font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id_57115a-80 .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:before{background-color:#edf2f7;}<\/style>\n\n<div class='code-block code-block-2' style='margin: 8px 0; clear: both;'>\n<style>\n.guru99_incontent_21 {\n\tmin-height: 280px !important;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n<\/style>\n\n<div align=\"center\" id=\"guru99_mobile_display\" class=\"guru99_incontent_21\">\n    \n  <script>\n    googletag.cmd.push(function() { googletag.display('guru99_mobile_display'); });\n  <\/script>\n<\/div><\/div>\n\n<h2>Why do we need SAS?<\/h2>\n<p>Let&#8217;s understand the need for SAS with a simple example:<\/p>\n<p>Consider an e-commerce company that wants to know the buying patterns of its customers based on historical data. The company will have to consider thousands of records of multiple customers, to get the generalize insight.<\/p>\n<p>The company may not have all these data required for the analysis. For example, if a customer did not buy a Jacket, then what are the factors which stopped them not buy the Jacket?  This missing data could create errors in your analysis. How can you we get rid of these problems? How can we handle this type of data?<\/p>\n<p>If done manually, this task will require hundreds of analysts and thousands of man-hours. By using SAS analytic tool, you can do the same analysis in a matter of hours with a single analyst. SAS tool allows you to eliminate unnecessary data and optimize the relevant information. It will enable you to predict an outcome even with missing data. SAS enables you to take better decisions.<\/p>\n<h2>Alternative SAS Tools<\/h2>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial1.png\" data-lasso-id=\"542264\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"294\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial1.png\" alt=\"Alternative SAS Tools\" class=\"\"><\/a><\/p>\n<p><strong>R:<\/strong> It is open-source software. It is easy to learn R as it is well documented. It offers strong statistical capabilities.<\/p>\n<p><strong>Python<\/strong> is another popular open-source scripting language. It is supports libraries such as Numpy, Scipy, and MatPlotLib. You can perform any statistical operation, or you can build any model using these libraries.<\/p>\n<p><strong>SAS:<\/strong> It is the widely used analytical tool in the commercial analytics market. With a plethora of statistical functions and good GUI.<\/p>\n<p>In this SAS programming tutorial, we will discuss about Statistical Analytical Systems, and how it can be used to solve our problems.<\/p>\n<h2>SAS history<\/h2>\n<ul>\n<li>SAS was developed by Jim Goodnight and John Shall in 1970 at N.C. University<\/li>\n<li>Initially, it was developed for Agricultural Research.<\/li>\n<li>Later, it expanded to a gamut of tools to include Predictive Analytics, Data Management, BI among others.<\/li>\n<li>Today 98 of world&#8217;s top companies in fortune 400 uses SAS data analytical tool for <a href=\"\/https\/www.guru99.com\/what-is-data-analysis.html\" data-lasso-id=\"188835\">Data analysis.<\/a><\/li>\n<\/ul>\n<p>Next in this SAS language tutorial, we will learn about features of SAS.<\/p>\n<h2>SAS Features<\/h2>\n<p>Key features of SAS are:<\/p>\n<ul>\n<li>Easily access raw data files &amp; data in from an external database. Read and write almost any data format!<\/li>\n<li>Manage data using tools for data entry, editing retrieval, formatting &amp; conversion<\/li>\n<li>Analyze data using descriptive, statistics, multivariate techniques, forecasting, modeling, linear programming<\/li>\n<li>Advanced analytics helps you to make changes and improvements in business practices.<\/li>\n<li>Report formation with perfect graphs<\/li>\n<li>Operations research and project Management<\/li>\n<li>Data updating and modification<\/li>\n<li>Powerful data handling language<\/li>\n<li>Excellent data cleansing functions<\/li>\n<li>Interact with multiple host systems<\/li>\n<\/ul>\n<p>Next in this SAS for beginners tutorial, we will learn about SAS Product suite.<\/p>\n<div class='code-block code-block-3' style='margin: 8px 0; clear: both;'>\n<style>\n.guru99_incontent_21 {\n\tmin-height:280px !important;\n}\n<\/style>\n\n<!-- Tag ID: guru99_static_3 -->\n<div id='guru99_incontent_2' class=\"guru99_incontent_21\">\n  <script>\n    googletag.cmd.push(function() { googletag.display('guru99_incontent_2'); });\n  <\/script>\n<\/div>\n<div class='yarpp yarpp-related yarpp-related-shortcode yarpp-template-yarpp-template-custom'>\n<div class=\"custom-related-posts\">\n    <h3 class=\"related-title\">RELATED ARTICLES<\/h3>\n    <ul>\n            <li>\n            <a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/data-engineer-interview-questions.html\" rel=\"bookmark\" title=\"60+ Data Engineer Interview Questions and Answers in \">\n                60+ Data Engineer Interview Questions and Answers in             <\/a>\n        <\/li>\n            <li>\n            <a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/data-science-vs-machine-learning.html\" rel=\"bookmark\" title=\"Difference Between Data Science and Machine Learning\">\n                Difference Between Data Science and Machine Learning            <\/a>\n        <\/li>\n            <li>\n            <a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/data-science-books.html\" rel=\"bookmark\" title=\"17 BEST Data Science Books ( Update)\">\n                17 BEST Data Science Books ( Update)            <\/a>\n        <\/li>\n            <li>\n            <a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/data-science-tutorial-for-beginners.html\" rel=\"bookmark\" title=\"Data Science Tutorial\">\n                Data Science Tutorial            <\/a>\n        <\/li>\n        <\/ul>\n<\/div>\n<\/div>\n<\/div>\n\n<h2>SAS Product Suite<\/h2>\n<p>There are many SAS products is available in the market. Following is a list of the more popular ones.<\/p>\n<table class=\"table table-striped\">\n<thead>\n<tr>\n<th width=\"50%\">Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Base SAS<\/td>\n<td>Base SAS software offers hardware agility and integrates into all kind of computing environment.<\/td>\n<\/tr>\n<tr>\n<td>SAS\/GRAPH<\/td>\n<td>This tool helps you to represent structured data into graphs.<\/td>\n<\/tr>\n<tr>\n<td>SAS\/STAT<\/td>\n<td>This tool helps you to perform different types of regression, statistical analysis variance, regression, and psychometric analysis.<\/td>\n<\/tr>\n<tr>\n<td>SAS\/ETS<\/td>\n<td>It is used for forecasting. Helps you to perform the time series analysis.<\/td>\n<\/tr>\n<tr>\n<td>SAS\/IML<\/td>\n<td>Interactive Matric language is known as IML. This tool helps you to translate mathematical formulas into an innovative program.<\/td>\n<\/tr>\n<tr>\n<td>SAS EBI<\/td>\n<td>A tool for Business Intelligence Applications<\/td>\n<\/tr>\n<tr>\n<td>SAS Grid Manager<\/td>\n<td>It is a core component which offers data management facility and a programming language for data analysis<\/td>\n<\/tr>\n<tr>\n<td>SAS\/OR<\/td>\n<td>Tool for Operation research<\/td>\n<\/tr>\n<tr>\n<td>SAS\/QC<\/td>\n<td>Use for Quality control<\/td>\n<\/tr>\n<tr>\n<td>SAS\/Enterprise Miner<\/td>\n<td>Data mining<\/td>\n<\/tr>\n<tr>\n<td>SAS\/PH<\/td>\n<td>Clinical trial analysis<\/td>\n<\/tr>\n<tr>\n<td>SAS\/AF<\/td>\n<td>It offers applications facility<\/td>\n<\/tr>\n<tr>\n<td>Enterprise Guide<\/td>\n<td>It is a GUI based code editor &amp; project manager<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Next in this SAS tutorials guide, we will learn about SAS architecture.<\/p>\n<h2>SAS Architecture<\/h2>\n<figure style=\"text-align:center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial2.png\" data-lasso-id=\"542265\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"318\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial2.png\" alt=\"SAS Architecture\" class=\"\"><\/a><figcaption style=\"text-align:center;\">Architecture of SAS<\/figcaption><\/figure>\n<p>SAS architecture is divided mainly of three parts:<\/p>\n<ul>\n<li>Client Tier<\/li>\n<li>Middle Tier<\/li>\n<li>Back tier<\/li>\n<\/ul>\n<h3>Client tier<\/h3>\n<p>Client tier is where the application is installed on a machine, where the user is sitting. It consists of the components which are used to view the portal and its content. It also includes a standard web browser that is used to interact with the portal over standard HTTP or HTTPS protocol. It also helps you to make the SAS web application firewall friendly.<\/p>\n<h3>Middle tier<\/h3>\n<p>The middle tier offers a centralized access point for enterprise information. All access to content is processed by components operating of this tier. The separation of the business logic with display logic helps you to leverage the logic of the middle tier. Moreover, centralized points of access make it easier to enforce security rules, administer the portal and manage code changes.<\/p>\n<p>The middle tier hosts the following functions:<\/p>\n<p><strong>SAS Information Delivery Portal Web Application: <\/strong>It is the collection of JSP, Java servlets, JavaBeans, and other classes and resources. These components help you to access information stored in the enterprise directory to create a customizable interface for the user.<\/p>\n<p><strong>Servlet Engine: <\/strong>The servlet engine is also called a servlet container. It is responsible for managing the SAS Information Delivery Portal Web Application. The servlet engine offers a run time environment. It provides concurrency, deployment, lifecycle management, etc.<\/p>\n<p><strong>Web server: <\/strong>Web server offers service for the servlet engine which can be used to host website. This should be accessed using the portal.<\/p>\n<h3>Back Tier<\/h3>\n<p>The back tier is an area where the data and computation servers run which may contain business objects. It is an enterprise directory server. The enterprise directory server maintains metadata about content which is located throughout the enterprise.<\/p>\n<div class='code-block code-block-4' style='margin: 8px 0; clear: both;'>\n<style>\n.guru99_incontent_31 {\n\tmin-height:280px !important;\n}\n<\/style>\n\n<!-- Tag ID: guru99_static_4 -->\n<div id='guru99_incontent_3' class=\"guru99_incontent_31\">\n  <script>\n    googletag.cmd.push(function() { googletag.display('guru99_incontent_3'); });\n  <\/script>\n<\/div><\/div>\n\n<h2>How to Download and Install SAS<\/h2>\n<p>Local Download in your machine<\/p>\n<p><strong>Step 1) Download SAS from given link<\/strong><\/p>\n<p>Go to this link <a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.sas.com\/en_in\/software\/university-edition.html\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"188840\">https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.sas.com\/en_in\/software\/university-edition.html<\/a>  and click on Get Free Software.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial3.png\" data-lasso-id=\"542266\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"591\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial3.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 2) Select your Operating System<\/strong><\/p>\n<p>Select the operating system as per your system.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial4.png\" data-lasso-id=\"542267\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"253\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial4.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 3) Download and install Virtualization Software<\/strong><\/p>\n<p>SAS requires Virtualization Software like VirtualBox to be installed before it can be installed. Here are the detailed steps<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial5.png\" data-lasso-id=\"519231\"><img loading=\"lazy\" decoding=\"async\" width=\"1304\" height=\"285\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial5.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p>Follow the steps mentioned onscreen to install SAS.  Having VirtualBox and local install could sometime be tricky. We recommend AWS installation-<\/p>\n<p><strong>AWS Installation<\/strong><\/p>\n<p>You can deploy SAS in AWS. It&#8217;s eligible for free tier.<\/p>\n<p><strong>Step 1)<\/strong> Go to <a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/aws.amazon.com\/marketplace\/pp\/B00WH10IKW\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"188841\">https:\/\/siteproxy.ruqli.workers.dev:443\/https\/aws.amazon.com\/marketplace\/pp\/B00WH10IKW<\/a>. Click &#8220;Continue to Subscribe&#8221;<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial6.png\" data-lasso-id=\"542268\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"298\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial6.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 2)  <\/strong>In this next screen, Accept Terms.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial7.png\" data-lasso-id=\"542269\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"519\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial7.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 3) <\/strong>The subscription is pending takes up to 10 minutes to approve. You will see the following screen.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial8.png\" data-lasso-id=\"542270\"><img loading=\"lazy\" decoding=\"async\" width=\"656\" height=\"332\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial8.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 4) <\/strong>Refresh the page, and you will subscription confirmed. Click on Continue to Configuration<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial9.png\" data-lasso-id=\"519235\"><img loading=\"lazy\" decoding=\"async\" width=\"1113\" height=\"347\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial9.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 5) <\/strong>Keep settings default and click Continue to Launch.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial10.png\" data-lasso-id=\"519236\"><img loading=\"lazy\" decoding=\"async\" width=\"1116\" height=\"642\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial10.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 6) <\/strong>Review the config page. Enter a key-value pair. Rest settings should be the default. Click Launch<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial11.png\" data-lasso-id=\"542271\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"1604\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial11.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 7) <\/strong>Go to <a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/aws.amazon.com\/marketplace\/library\/\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"188842\">https:\/\/siteproxy.ruqli.workers.dev:443\/https\/aws.amazon.com\/marketplace\/library\/<\/a>  and click on View Instances.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial12.png\" data-lasso-id=\"542272\"><img loading=\"lazy\" decoding=\"async\" width=\"542\" height=\"287\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial12.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 8) <\/strong>In the popup<\/p>\n<ol>\n<li>Note the instance id. This is your password<\/li>\n<li>Click Access software<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial13.png\" data-lasso-id=\"542273\"><img loading=\"lazy\" decoding=\"async\" width=\"564\" height=\"356\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial13.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 9) <\/strong>In the popup, that appears after you click in step 8<\/p>\n<ol>\n<li>Enter user credentials. Id: sasdemo password: instance id noted in step 8<\/li>\n<li>Click Sign in<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial14.png\" data-lasso-id=\"542274\"><img loading=\"lazy\" decoding=\"async\" width=\"483\" height=\"254\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial14.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p><strong>Step 10) <\/strong>You will see the welcome screen.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial15.png\" data-lasso-id=\"542275\"><img loading=\"lazy\" decoding=\"async\" width=\"1077\" height=\"565\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial15.png\" alt=\"Download and Install SAS\" class=\"\"><\/a><\/p>\n<p>Troubleshooting<\/p>\n<p>If you are not able to connect, go to <a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/console.aws.amazon.com\/ec2\/v2\/home?region=us-east-1\" target=\"_blank\" rel=\"nofollow noopener\" data-lasso-id=\"188843\">https:\/\/siteproxy.ruqli.workers.dev:443\/https\/console.aws.amazon.com\/ec2\/v2\/home?region=us-east-1#SecurityGroups:sort=groupId<\/a> and inbound\/outbound rules to all<\/p>\n<h2>How to Use SAS?<\/h2>\n<p>To effectively use SAS software you need to follow four steps which are: Access Data, Management Data, Analyze, Present<\/p>\n\n\n<figure style=\"text-align:center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial16.png\" data-lasso-id=\"542276\"><img loading=\"lazy\" decoding=\"async\" width=\"594\" height=\"138\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial16.png\" alt=\"How to use SAS\" class=\"\"><\/a><figcaption style=\"text-align:center;\">How to use SAS<\/figcaption>\n<\/figure>\n\n\n<p><strong>Access Data:<\/strong><\/p>\n<p>SAS allows you to access data in any desired format that you want.<\/p>\n<p>You can access data that is stored anywhere, whether it is in a file on your system or data that is stored in another database system. It can be oracle file, SAS database file, Raw Database file or a simple XLS \/CSV file. It will help you to access this data with ease.<\/p>\n<p><strong>Manage Data:<\/strong><\/p>\n<p>SAS offers great data management capabilities. You can subset\/slice data based on certain conditions, create variable, clean &amp; validate data. There are other tools which allow you to perform the same task. However, SAS helps you to perform this job with ease.<\/p>\n<p>SAS has well-defined libraries and processes which makes the programming process easy. Moreover, creating variable or subset data is just one step process. This saves you from writing complex algorithms by just a single line of code.<\/p>\n<p><strong>Analyze: <\/strong><\/p>\n<p>You can do various kinds of analyze using SAS:<\/p>\n<ul>\n<li>It checks Frequency of Mean calculation<\/li>\n<li>Regression and Forecasting<\/li>\n<li>Decision Tree<\/li>\n<\/ul>\n<p>All these analyzes can easily handle by SAS. It is the best tool for accurate forecasting.<\/p>\n<p><strong>Present:<\/strong><\/p>\n<p>If you visualize data correctly, it is effortless for the audience to relate to it. It is essential that your tool present the data in a suitable manner. That&#8217;s what SAS does for you. It has excellent presentation capabilities.<\/p>\n<p>You can:<\/p>\n<p>1. List reports<\/p>\n<p>2. Summary reports<\/p>\n<p>3. Graph reports<\/p>\n<p>4. Print reports<\/p>\n<h2>SAS Program Example<\/h2>\n<p>SAS Program consists of three necessary steps:<\/p>\n<ul>\n<li>Data Step<\/li>\n<li>Proc Step<\/li>\n<li>Output Step<\/li>\n<\/ul>\n<h3>DATA Step<\/h3>\n<p>Data step loads the needed data set into SAS memory and finds the correct variables of the data set. It also captures the records. We can use data steps to:<\/p>\n<ul>\n<li>Enter data into SAS data sets<\/li>\n<li>Compute Values<\/li>\n<li>Check or correct data<\/li>\n<li>Produce new data sets<\/li>\n<\/ul>\n<p>The syntax for DATA statement is:<\/p>\n<p><strong>Syntax<\/strong><\/p>\n<pre>DATA data_set_name;\t\t#Give a name to the dataset\nINPUT var1,var2,var3; \t\t#Declare variables in the dataset.\nNEW_VAR;\t\t\t         #Define new variables.\nLABEL;\t\t\t      \t#Give variables a label\nDATALINES;\t\t      \t#Provide data\nRUN;\n<\/pre>\n<p><strong>Example:<\/strong><\/p>\n<p>Following example show how to define a  variable, naming the data set, creating new variables and entering the data. In this example, you can see that string variable have a $ at the end, and numeric values are without it.<\/p>\n<pre>INPUT ID $ NAME $ SALARY DEPARTMENT $;\ncomm = SALARY*1.50;\nLABEL ID = 'Emp_ID' comm = 'COMMISION';\nDATALINES;\n1 Tom 5000 IT\n2 Harry 6000 Operations\n3 Michelle 7000 IT\n4 Dick 8000 HR\n5 John 9000 Finance \n;\nRUN;\n<\/pre>\n<p>Note: To execute SAS Statement need to specify the RUN command.<\/p>\n<h3>PROC Step<\/h3>\n<p>It performs specific analysis or functions to produce results and reports.<\/p>\n<p><strong>Syntax<\/strong><\/p>\n<pre>PROC procedure_name options; #The name of the proc.\nRUN;\n<\/pre>\n<p><strong>Example<\/strong><\/p>\n<p>The given example uses the <strong>MEANS<\/strong> procedure to print the mean values of the numeric variables in the data set.<\/p>\n<pre>PROC MEANS;\nRUN;\n<\/pre>\n<h3>The OUTPUT Step<\/h3>\n<p>You can display the data from the data with conditional output statements.<\/p>\n<p>Syntax<\/p>\n<pre>PROC PRINT DATA = data_set;\nOPTIONS;\nRUN;\n<\/pre>\n<p>Every SAS program must follow all the above mentions steps to read the input data, analyzing the data and giving the output of the analysis. The <strong>RUN <\/strong>statement at the end of each step finishes the execution of that step.<\/p>\n<h2>The complete SAS Program<\/h2>\n<p>Below given is the complete code for each of the above steps.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial17.png\" data-lasso-id=\"542277\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"401\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial17.png\" alt=\"The Complete SAS Program\" class=\"\"><\/a><\/p>\n<p><strong>Output:<\/strong><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial18.png\" data-lasso-id=\"542278\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"206\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial18.png\" alt=\"The Complete SAS Program\" class=\"\"><\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial19.png\" data-lasso-id=\"542279\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"636\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial19.png\" alt=\"The Complete SAS Program\" class=\"\"><\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial20.png\" data-lasso-id=\"542280\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"324\" src=\"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/1\/122118_0601_SASTutorial20.png\" alt=\"The Complete SAS Program\" class=\"\"><\/a><\/p>\n<h2>Where is SAS used?<\/h2>\n<p><strong>Below given are some important SAS applications:<\/strong><\/p>\n<table class=\"table table-striped\">\n<thead>\n<tr>\n<th width=\"50%\">Industry<\/th>\n<th>Usage<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Pharmaceutical<\/td>\n<td>Statistical Analysis, Reporting<\/td>\n<\/tr>\n<tr>\n<td>Telecom<\/td>\n<td>ETL, Reporting, Data Mining, Forecasting<\/td>\n<\/tr>\n<tr>\n<td>Financials<\/td>\n<td>ETL, Reporting, Data Mining, Financial research<\/td>\n<\/tr>\n<tr>\n<td>Predictive modeling<\/td>\n<td>DBMarketing, Activity-Based Management<\/td>\n<\/tr>\n<tr>\n<td>Healthcare<\/td>\n<td>ETL, reporting, Data Mining<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>SAS Vs. R<\/h2>\n<table class=\"table table-striped\">\n<thead>\n<tr>\n<th width=\"50%\">SAS<\/th>\n<th>R<\/th>\n<\/thead>\n<\/tr>\n<tbody>\n<tr>\n<td>SAS is commercial software, so it requires a financial investment.<\/td>\n<td><a href=\"\/https\/www.guru99.com\/r-tutorial.html\" data-lasso-id=\"542281\">R<\/a> is open source software. Hence anyone can use it.<\/td>\n<\/tr>\n<tr>\n<td>SAS is an easiest analytical tool to learn. Even people with limited knowledge of SQL can learn it quickly.<\/td>\n<td>R requires you to write complicated and lengthy codes.<\/td>\n<\/tr>\n<tr>\n<td>SAS is a highly preferred choice by big companies and is quite technically advanced &amp; user-friendly.<\/td>\n<td>R is fast developing software; however, you need to keep upgrading it.<\/td>\n<\/tr>\n<tr>\n<td>SAS has good graphical support but does not offer any customization.<\/td>\n<td>Graphical support of R tool is very poor.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Advantages of SAS<\/h2>\n<ul>\n<li>SAS  has an easy syntax which can be learned without any type of programming knowledge<\/li>\n<li>Ability to handle a large database with ease<\/li>\n<li>SAS is a very comprehensible language which can easily be debugged<\/li>\n<li>Its &#8220;log&#8221; window clearly states the error which helps you to debug your code easily<\/li>\n<li>SAS helps you thoroughly test and  analyze the algorithm<\/li>\n<li>SAS is completely secured so you can&#8217;t extract without a license in the office<\/li>\n<li>Makes statistical computing easier for the non-programming users<\/li>\n<li>Handles large size database effectively.<\/li>\n<\/ul>\n<h2>Disadvantages of SAS<\/h2>\n<ul>\n<li>Cost is high because individual or organization can&#8217;t use it all applications without a proper license<\/li>\n<li>SAS is not open source so,  algorithms used in SAS are not available for common use<\/li>\n<li>Text mining is a very troublesome and difficult process in SAS.<\/li>\n<\/ul>\n<h2 class=\"toc-ignore\">Summary<\/h2>\n<ul>\n<li>SAS software meaning Statistical Analysis Software which is used for Data analytics<\/li>\n<li>R and <a href=\"\/https\/www.guru99.com\/python-tutorials.html\" data-lasso-id=\"542282\">Python<\/a> are two widely used alternative tools of SAS.<\/li>\n<li>SAS was developed by Jim Goodnight and John Shall in1970 at N.C. University<\/li>\n<li>SAS allows you to access raw data files &amp; data in an external database of any kind<\/li>\n<li>SAS architecture is divided mainly of three parts 1)Client Tier 2) Middle Tier 3) Back tier<\/li>\n<li>To use SAS software you need to follow four steps which are: 1)Access Data, 2)Management 3) Analyze Data, 4) Presentation<\/li>\n<li>SAS Program consists of three basic steps: Data Step, Proc Step, and Output Step<\/li>\n<li>SAS <a href=\"\/https\/www.guru99.com\/big-data-analytics-tools.html\" data-lasso-id=\"188851\">data analytical tool<\/a> is widely used in sectors like Pharmaceutical, Telecom, Financials, Predictive modeling, and Healthcare<\/li>\n<li>SAS is commercial software while R is open source software<\/li>\n<li>The biggest benefit of SAS programmer tool is that it has an easy syntax that can be learned without any type of programming knowledge.<\/li>\n<li>One of the drawbacks of SAS model is that it is not an open source tool. So, algorithms used in SAS procedures are not available for common use.<\/li>\n<\/ul>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>What is SAS? SAS is a command-driven statistical software suite widely used for statistical data analysis and visualization. SAS full form is Statistical Analysis Software. It allows you to use qualitative techniques and processes which help you to enhance employee productivity and business profits. SAS is also used for advanced analytics like business intelligence, crime&#8230;<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":41,"featured_media":58940,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_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":"","footnotes":""},"categories":[84],"tags":[154,146],"coauthors":[478],"class_list":["post-1288","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science","tag-convertbox-developer","tag-non-amp"],"taxonomy_info":{"category":[{"value":84,"label":"Data Science"}],"post_tag":[{"value":154,"label":"Convertbox-Developer"},{"value":146,"label":"Non AMP"}]},"featured_image_src_large":["https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/images\/sas-versus-r.png",291,80,false],"author_info":{"display_name":"Evelyn Clarke","author_link":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/author\/evelyn"},"comment_info":0,"category_info":[{"term_id":84,"name":"Data Science","slug":"data-science","term_group":0,"term_taxonomy_id":84,"taxonomy":"category","description":"","parent":0,"count":10,"filter":"raw","cat_ID":84,"category_count":10,"category_description":"","cat_name":"Data Science","category_nicename":"data-science","category_parent":0}],"tag_info":[{"term_id":154,"name":"Convertbox-Developer","slug":"convertbox-developer","term_group":0,"term_taxonomy_id":154,"taxonomy":"post_tag","description":"","parent":0,"count":834,"filter":"raw"},{"term_id":146,"name":"Non AMP","slug":"non-amp","term_group":0,"term_taxonomy_id":146,"taxonomy":"post_tag","description":"","parent":0,"count":1292,"filter":"raw"}],"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/posts\/1288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/comments?post=1288"}],"version-history":[{"count":0,"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/posts\/1288\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/media\/58940"}],"wp:attachment":[{"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/media?parent=1288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/categories?post=1288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/tags?post=1288"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/www.guru99.com\/wp-json\/wp\/v2\/coauthors?post=1288"}],"curies":[{"name":"wp","href":"https:\/\/siteproxy.ruqli.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}