Welcome to Exampler;
What is it?
- An Example Site for Data Science professionals and Developers that use SAS
- Presently a SAS Example and Reference Site;
- SAS stands for Statistical Analytical Software and is an enterprise language with a suite of other interconnected tools
- SAS is used by more than 80,000 companies; More specifically, companies that have a Data Science Department
- This site has a series of simple SAS examples (hopefully other langugaes too... eventually)
- SAS has more than 450 commands, however this site will focus on SAS CAS functions (initially)
Syntax:
- Explain(This is where I provide the syntax of a SAS Function);
Exampler Statement:
Layout of a Typical Example :
Data work.my_data_file;
Variable_Name_1 = name_of_function(Parameters);
Variable_Name_2 = name_of_function(Parameters);
Run;
|
What's happening in the script above?
- This section is where I provide an extra instruction on what's happening in the script above
- For Example, Line 1 is telling SAS we would like to create a temporary table for a DATA Step called work.my_data_file
- Line 2 and 3 are assigning "Variable_Name_1" and "Variable_Name_2" values once they've been computed by the "name_of_function" function.
- Line 4 is the run command;
- The entire layout loosely resembles a SQL code block or in SAS's case a Proc SQL code block (more on this later)
- Below is where I show the example results
Example Output:
Variable |
Input |
Output |
Description |
Variable_Name_1 |
name_of_function(Parameters); |
the value of Variable_Name_1 after the function ran |
A breif description |
Variable_Name_2 |
name_of_function(Parameters); |
the value of Variable_Name_2 after the function run |
see above |
See also; PUT Function
See also; TODAY Function
See also; Hour Function
Connect via LinkedIn
Kevin Regan
Have an article, idea, found a typo, want to contribute? Shoot me an email
Here
Below are links to some Udemy Data Science Courses. I've been using Udemy for a number of years now, and I've found their courses super helpful, maybe you will also.