SlideShare une entreprise Scribd logo
1  sur  25
What is SAS? The SAS BI SoftwareThe SAS BI System is an integrated suite of software for enterprise-wide information delivery... Applications of the SAS System include executive information systems; data entry, retrieval, and management; report writing and graphics; statistical and mathematical analysis; business planning, forecasting, and decision support; operations research and project management; statistical quality improvement; computer performance evaluation; and applications development. Read more @ http://sastechies.blogspot.com/2009/11/what-is-sas.html   Introduction to SAS Read more @ http://sastechies.blogspot.com/2009/11/introduction-to-sas.html  What is SAS system?   The SAS System known well as Statistical Analysis System, is one of the most widely used, flexible data processing, reporting and analyses tools. SAS is a set of solutions for enterprise-wide business users as well as a powerful fourth-generation programming language for performing tasks or analyses in a variety of realms such as these: - Analytic Intelligence General Data Mining and Statistical Analysis Forecasting & Econometrics Operations Research Read more @ http://sastechies.blogspot.com/2009/11/introduction-to-sas.html   SAS Books Recommended for industry application These books coupled with SUGI Papers will give you the impetus/basics to learn and explore more on the Internet.1. Professional SAS Programmer's Pocket Reference - Rick Aster       This book would be a must for any SAS Professional I guess.....It's a quick handy book for Syntax and  options......2. SAS Certification Prep Guide: Base Programming - SAS Institute      This book is a Prep Guide for BaseSAS....I would suggest you to read the whole book before you attempt the exam in addition to the SAS Online tutor, as it covers some uncovered syllabus on the latter....3. Cody's Data Cleaning Techniques Using SAS Software - Ron Cody       This book is an excellent source of examples of SAS in real-world applications.... Read more @ http://sastechies.blogspot.com/2009/11/sas-books-recommended-for-industry.html    Base SAS tutorials (Slides) for the Beginners !!! ... Here are some links to learning Base SAS...SAS Slides 1 : Introduction to SAS  Read more @ http://sastechies.blogspot.com/2009/11/base-sas-tutorials-slides-for-beginners.html   Advanced SAS tutorials (Slides) for Beginners !!! Here are some links to learning Advanced SAS Programming...SAS Macros - to learn Macro Programming in SAS.SAS Slides 12 : Macros  Read more @ http://sastechies.blogspot.com/2009/11/advanced-sas-tutorials-slides-for.html   Quick links to SAS Statements in SAS Documentation... Here are some links to SAS statements and its options in the SAS Documentation...SAS OptionsSAS StatementsSAS ProceduresSAS FunctionsSAS Simple STATs Read more @ http://sastechies.blogspot.com/2009/11/quick-links-to-sas-statements-in-sas.html   Base SAS tutorials (Slides) for the Beginners !!! ... SAS Slides 7 : Match Merging with Datastep  Read more @ http://sastechies.blogspot.com/2009/11/base-sas-tutorials-slides-for-beginners_13.html   SAS macro to Create / Remove a PC Directory... Here's a SAS macro to Create and Remove a PC Directory... Often we ignore Notes and warning in the SAS log when we try to create/remove a directory that does/doesn't exist...This macro first checks for the existence of the directory and then create/delete it or else put a message to the SAS log...try it out :-) /* Macro to Create a directory */ %macro CheckandCreateDir(dir);     options noxwait;     %local rc fileref ;     %let rc = %sysfunc(filename(fileref,&dir)) ;        %if %sysfunc(fexist(&fileref)) %then        %put The directory 
&dir
 already exists ;     %else       %do ;           %sysexec mkdir 
&dir
 ;           %if &sysrc eq 0 %then %put The directory &dir has been created. ;  Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-remove-pc-directory.html  Ways to Count the Number of Obs in a dataset and pass it into a macro variable... Well...there are many ways of getting the observation count into a macro variable...but there a few pros and cons in those methods...1. using sql with count(*)..  eg.         proc sql;              select count(*) into :macvar             from dsn;         quit; pros: simple to understand and develop cons: you need to read the dataset in its entirety which requires processing power here...2. datastep  eg.        data new;          set old nobs=num;          call symputx('macvar',num);       run; Read more @ http://sastechies.blogspot.com/2009/11/ways-to-count-number-of-obs-in-dataset.html  SAS macro to split dataset by the number of Observations specified Suppose there was a large dataset....This SAS macro program splits the dataset by the number of observations mentioned...macro name%split(DatasetName, No ofobservation to split by)/* creating a dataset with 100000 observations*/ data dsn; do i=1 to 100000; output; end; run; %macro split(dsn,splitby); data _null_; set &dsn nobs=num; Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-split-dataset-by-number-of.html   SAS Programming Efficiencies The purpose of this document is to provide tips for improving the efficiency of your SAS programs. It suggests coding techniques, provides guidelines for their use, and compares examples of acceptable and improved ways to accomplish the same task. Most of the tips are limited to DATA step applications.   Efficiency   For the purpose of this discussion, efficiency will be defined simply as obtaining more results from fewer computer resources. When you submit a SAS program, the computer must:   load the required software into memory   compile the program   Read more @ http://sastechies.blogspot.com/2009/11/sas-programming-efficiencies.html   SAS macro to reorder dataset variables in alphabetic order... How do you reorder variables in a dataset...I get this many a times....  Here's a macro for you to achieve it...For example I've used a dataset sashelp.flags and created some more variables with variety of variables with names upper / lower cases and _'s to demonstrate the reorder macro....   Please try this macro for yourself and let me know your suggestions....   /* Example dataset with variety of variable names */    data flags;  set sashelp.flags;  a=2;  b=4;  Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-reorder-dataset-variables.html   SAS Interview Questions and Answers found on the Internet... Here are some more links for SAS Interview Questions and Answers found on the Internet...http://www.sconsig.com/tipscons/list_sas_tech_questions.htmhttp://www.globalstatements.com/sas/jobs/technicalinterview.html http://studysas.blogspot.com Read more @ http://sastechies.blogspot.com/2009/11/sas-interview-questions-and-answers.html  SAS Interview Questions and Answers(1) What SAS statements would you code to read an external raw data file to a DATA step? We use SAS statements –  FILENAME – to specify the location of the file INFILE - Identifies an external file to read with an INPUT statement INPUT – to specify the variables that the data is identified with.  Read more @ http://sastechies.blogspot.com/2009/11/sas-interview-questions.html   SAS Interview Questions and Answers(2) If you're not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set? Data _null_;    _NULL_ - specifies that SAS does not create a data set when it executes the DATA step.    Data _null_ is majorly used in   creating quick macro variables with call symput routine  eg.             Data _null_;              Set somedata;              Call symput(‘macvar’,dsnvariable);          Run; Creating a Custom Report  Eg.  Read more @ http://sastechies.blogspot.com/2009/11/sas-interview-questions-and-answers2.html   Advanced Macro Topics A document that discusses Advanced Macro topics Read more @ http://sastechies.blogspot.com/2009/11/advanced-macro-topics.html   SAS Instructor's Programming Tip - Combining Data ... Read more @ http://sastechies.blogspot.com/2009/11/sas-instructors-programming-tip.html   Opening SAS Data Files - A video tutorial Read more @ http://sastechies.blogspot.com/2009/11/opening-sas-data-files-video-tutorial.html   SAS Add-in to Microsoft Office SAS Add-In for Microsoft Office enables business users to trans-parently leverage the power of SAS data access, reporting and analytics directly from Microsoft Office via integrated menus and toolbars.SAS Add-in to Microsoft Office Video Tutorial 1SAS Add-in to Microsoft Office Video Tutorial 2A document that discusses SAS Add-in to Microsoft Office Read more @ http://sastechies.blogspot.com/2009/11/sas-add-in-to-microsoft-office.html    SAS Certification Preparation Guide for SAS 9 SAS Certification Preparation Guide  Read more @ http://sastechies.blogspot.com/2009/11/sas-certification-preparation-guide-for.html   SAS Publishing - SAS 9.1 Programming I & II Course... Sas Publishing - Sas 9.1 Programming I Essentials Course Notes (2005)  Read more @ http://sastechies.blogspot.com/2009/11/sas-publishing-sas-91-programming-i.html  Use SAS function Propcase() to streamline Google Contacts You might think I am crazy...but I have been using this macro for a long time to fix some contacts in my Google Contacts...I get a little irritated when I can't find a particular person by email...so I wrote this macro...This macro takes for Input a .csv file that is exported from Google Contacts and outputs a file that is ready to be imported to Google Contacts....often I wanted to have Names in the proper case...Try it yourself and let me know if it needs any tweaks...Propcase in SAS Documentation. %macro organizeGoogleContacts(infile,outfile); /*Import your contacts into SAS */  data googlegroups; infile 
&infile
 dlm=',' dsd lrecl=32767 firstobs=2; Read more @ http://sastechies.blogspot.com/2009/11/use-sas-function-propcase-to-streamline.html   SAS Macro to Create a delimited text file from a SAS dataset... A document that discusses SAS Macro to Create a delimited text file from a SAS data set..  options mprint;   data one;   input id name :$20. amount ;   date=today();   format amount dollar10.2             date mmddyy10.;   label id=
Customer ID Number
; datalines; 1 Grant   57.23 2 Michael 45.68 3 Tammy   53.21 ; Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-create-delimited-text-file.html   How can I create a CSV file with ODS? A document that discusses How can I create a CSV file with ODS?  /* example 1: Release 8.1 */     ods xml body='c:estest.csv' type=csv;    proc print data=sashelp.class;    run;    ods xml close; Read more @ http://sastechies.blogspot.com/2009/11/how-can-i-create-csv-file-with-ods.html  Use a Microsoft Excel file to create a user-defined format A document that discusses Use a Microsoft Excel file to create a user-defined format /*Create an Excel spreadsheet for the example. */  filename test 'c:estfmt.csv'; proc export data=sashelp.class outfile=test   dbms=csv replace; run; Read more @ http://sastechies.blogspot.com/2009/11/use-microsoft-excel-file-to-create-user.html  SAS Macro to split a dataset into multiple datasets vertically with a common primary key This macro splits a dataset to multiple datasets vertically with a common primary key. For eg, a dataset has 400 fields and 20,000 records. If we can split the dataset into two, with 200 fields and 20,000 records in each dataset with a common field like loan number as primary key would be helpful to load the details for analysis.   /** To be called like this... %splitdsnverticallykey(dsn,varperdsn,keyvars=); eg. %splitdsnverticallykey(sashelp.vtable,4,keyvars=memname libname);   Where -----------   dsn - libname.datasetname to be split varperdsn - How many vars per dsn excluding the key variables keyvars - specify the primary key variables */  Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-split-dataset-into.html   SAS Certification Base SAS Practice Exam SAS BASE Programming Exam  Read more @ http://sastechies.blogspot.com/2009/11/sas-certification-base-sas-practice.html   SAS Certification Advanced SAS Practice Exam Sample Advanced SAS Exam  Read more @ http://sastechies.blogspot.com/2009/11/sas-certification-advanced-sas-practice.html   Other interesting SAS Blogs for references... Here are some other interesting SAS Blogs for references...http://www.sastips.com/http://www.afhood.com/blog/http://www.thejuliagroup.com/blog/ Read more @ http://sastechies.blogspot.com/2009/11/other-interesting-sas-blogs-for.html  SAS Macro that reads the filenames  available at a particular directory on any FTP server (i.e. Windows Network  Drive/Unix/Mainframe) Here's a macro that reads the filenames available at a particular directory on any FTP server (i.e. Windows Network Drive/Unix/Mainframe)... For Windows network drives we use the Filename Pipe Statement For Mainframe and Unix we use the FileName FTP protocol statement. For further reference please refer to Filename statements in SAS Documentation. First we need to create 2 Excel files  ServerList.xls – 3 columns with servertype | host | sourcedir Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-that-lists-files-at.html
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming
Learn SAS Programming

Contenu connexe

Tendances

Tendances (20)

Introduction To Sas
Introduction To SasIntroduction To Sas
Introduction To Sas
 
Basics of SAS
Basics of SASBasics of SAS
Basics of SAS
 
Utility Procedures in SAS
Utility Procedures in SASUtility Procedures in SAS
Utility Procedures in SAS
 
Sas cheat
Sas cheatSas cheat
Sas cheat
 
SAS cheat sheet
SAS cheat sheetSAS cheat sheet
SAS cheat sheet
 
SAS Macros part 1
SAS Macros part 1SAS Macros part 1
SAS Macros part 1
 
SAS Macros
SAS MacrosSAS Macros
SAS Macros
 
Sas practice programs
Sas practice programsSas practice programs
Sas practice programs
 
Base SAS Full Sample Paper
Base SAS Full Sample Paper Base SAS Full Sample Paper
Base SAS Full Sample Paper
 
Data Management in R
Data Management in RData Management in R
Data Management in R
 
My tableau
My tableauMy tableau
My tableau
 
Data Warehouse Fundamentals
Data Warehouse FundamentalsData Warehouse Fundamentals
Data Warehouse Fundamentals
 
SAP BI/BW
SAP BI/BWSAP BI/BW
SAP BI/BW
 
Base sas interview questions
Base sas interview questionsBase sas interview questions
Base sas interview questions
 
Conditional statements in sas
Conditional statements in sasConditional statements in sas
Conditional statements in sas
 
Sas
SasSas
Sas
 
Sas Plots Graphs
Sas Plots GraphsSas Plots Graphs
Sas Plots Graphs
 
The BI Sandbox
The BI SandboxThe BI Sandbox
The BI Sandbox
 
Oracle to Netezza Migration Casestudy
Oracle to Netezza Migration CasestudyOracle to Netezza Migration Casestudy
Oracle to Netezza Migration Casestudy
 
SAS Proc SQL
SAS Proc SQLSAS Proc SQL
SAS Proc SQL
 

En vedette

Understanding SAS Data Step Processing
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processingguest2160992
 
Base SAS Exam Questions
Base SAS Exam QuestionsBase SAS Exam Questions
Base SAS Exam Questionsguestc45097
 
SAS Presentation
SAS PresentationSAS Presentation
SAS PresentationKali Howard
 
Introduction to SAS
Introduction to SASIntroduction to SAS
Introduction to SASizahn
 
64 interview questions
64 interview questions64 interview questions
64 interview questionsTarikul Alam
 
Sas Macro Examples
Sas Macro ExamplesSas Macro Examples
Sas Macro ExamplesSASTechies
 
Yahoo7 Tech Night - SASS
Yahoo7 Tech Night - SASSYahoo7 Tech Night - SASS
Yahoo7 Tech Night - SASSAndy Sharman
 
Drupal 7: Theming with the SASS Framework
Drupal 7: Theming with the SASS FrameworkDrupal 7: Theming with the SASS Framework
Drupal 7: Theming with the SASS FrameworkEric Sembrat
 
Resume__DotNet_Koushik_Deb
Resume__DotNet_Koushik_DebResume__DotNet_Koushik_Deb
Resume__DotNet_Koushik_DebKoushik Deb
 
Sql Projects-Detail
Sql Projects-DetailSql Projects-Detail
Sql Projects-DetailTahrizwan
 
Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014Ram Kedem
 
Sas institute project presentation
Sas institute   project presentationSas institute   project presentation
Sas institute project presentationaghussien
 

En vedette (15)

SAS basics Step by step learning
SAS basics Step by step learningSAS basics Step by step learning
SAS basics Step by step learning
 
Understanding SAS Data Step Processing
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processing
 
Sas demo
Sas demoSas demo
Sas demo
 
Base SAS Exam Questions
Base SAS Exam QuestionsBase SAS Exam Questions
Base SAS Exam Questions
 
SAS Presentation
SAS PresentationSAS Presentation
SAS Presentation
 
Introduction to SAS
Introduction to SASIntroduction to SAS
Introduction to SAS
 
64 interview questions
64 interview questions64 interview questions
64 interview questions
 
Sas Macro Examples
Sas Macro ExamplesSas Macro Examples
Sas Macro Examples
 
Yahoo7 Tech Night - SASS
Yahoo7 Tech Night - SASSYahoo7 Tech Night - SASS
Yahoo7 Tech Night - SASS
 
Drupal 7: Theming with the SASS Framework
Drupal 7: Theming with the SASS FrameworkDrupal 7: Theming with the SASS Framework
Drupal 7: Theming with the SASS Framework
 
Resume__DotNet_Koushik_Deb
Resume__DotNet_Koushik_DebResume__DotNet_Koushik_Deb
Resume__DotNet_Koushik_Deb
 
Sql Projects-Detail
Sql Projects-DetailSql Projects-Detail
Sql Projects-Detail
 
Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014
 
SAS for Beginners
SAS for BeginnersSAS for Beginners
SAS for Beginners
 
Sas institute project presentation
Sas institute   project presentationSas institute   project presentation
Sas institute project presentation
 

Similaire à Learn SAS Programming

SAS Training | SAS Tutorials For Beginners | SAS Programming | SAS Online Tra...
SAS Training | SAS Tutorials For Beginners | SAS Programming | SAS Online Tra...SAS Training | SAS Tutorials For Beginners | SAS Programming | SAS Online Tra...
SAS Training | SAS Tutorials For Beginners | SAS Programming | SAS Online Tra...Edureka!
 
SAS Programming For Beginners | SAS Programming Tutorial | SAS Tutorial | SAS...
SAS Programming For Beginners | SAS Programming Tutorial | SAS Tutorial | SAS...SAS Programming For Beginners | SAS Programming Tutorial | SAS Tutorial | SAS...
SAS Programming For Beginners | SAS Programming Tutorial | SAS Tutorial | SAS...Edureka!
 
Top 140+ Advanced SAS Interview Questions and Answers.pdf
Top 140+ Advanced SAS Interview Questions and Answers.pdfTop 140+ Advanced SAS Interview Questions and Answers.pdf
Top 140+ Advanced SAS Interview Questions and Answers.pdfDatacademy.ai
 
Downloading, Configuring, and Using the Free SAS® University Edition Software
Downloading, Configuring, and Using the Free SAS® University Edition SoftwareDownloading, Configuring, and Using the Free SAS® University Edition Software
Downloading, Configuring, and Using the Free SAS® University Edition SoftwareKirk Lafler
 
Analytics with SAS
Analytics with SASAnalytics with SAS
Analytics with SASEdureka!
 
New dimensions for_reporting
New dimensions for_reportingNew dimensions for_reporting
New dimensions for_reportingRahul Mahajan
 
Habits of Effective SAS Programmers
Habits of Effective SAS ProgrammersHabits of Effective SAS Programmers
Habits of Effective SAS ProgrammersSunil Gupta
 
Sas training institute in hyderabad
Sas training institute in hyderabadSas training institute in hyderabad
Sas training institute in hyderabadAccuprosys
 
SAP HANA direct extractor:Data acquisition
SAP HANA direct extractor:Data acquisition SAP HANA direct extractor:Data acquisition
SAP HANA direct extractor:Data acquisition Deepak Chaubey
 

Similaire à Learn SAS Programming (20)

SAS Training | SAS Tutorials For Beginners | SAS Programming | SAS Online Tra...
SAS Training | SAS Tutorials For Beginners | SAS Programming | SAS Online Tra...SAS Training | SAS Tutorials For Beginners | SAS Programming | SAS Online Tra...
SAS Training | SAS Tutorials For Beginners | SAS Programming | SAS Online Tra...
 
SAS Programming For Beginners | SAS Programming Tutorial | SAS Tutorial | SAS...
SAS Programming For Beginners | SAS Programming Tutorial | SAS Tutorial | SAS...SAS Programming For Beginners | SAS Programming Tutorial | SAS Tutorial | SAS...
SAS Programming For Beginners | SAS Programming Tutorial | SAS Tutorial | SAS...
 
Top 140+ Advanced SAS Interview Questions and Answers.pdf
Top 140+ Advanced SAS Interview Questions and Answers.pdfTop 140+ Advanced SAS Interview Questions and Answers.pdf
Top 140+ Advanced SAS Interview Questions and Answers.pdf
 
Downloading, Configuring, and Using the Free SAS® University Edition Software
Downloading, Configuring, and Using the Free SAS® University Edition SoftwareDownloading, Configuring, and Using the Free SAS® University Edition Software
Downloading, Configuring, and Using the Free SAS® University Edition Software
 
2746-2016
2746-20162746-2016
2746-2016
 
320 2009
320 2009320 2009
320 2009
 
Analytics with SAS
Analytics with SASAnalytics with SAS
Analytics with SAS
 
New dimensions for_reporting
New dimensions for_reportingNew dimensions for_reporting
New dimensions for_reporting
 
Sas base programmer
Sas base programmerSas base programmer
Sas base programmer
 
Habits of Effective SAS Programmers
Habits of Effective SAS ProgrammersHabits of Effective SAS Programmers
Habits of Effective SAS Programmers
 
SAP BOBJ Rapid Marts Overview I
SAP BOBJ Rapid Marts Overview ISAP BOBJ Rapid Marts Overview I
SAP BOBJ Rapid Marts Overview I
 
SAS - Training
SAS - Training SAS - Training
SAS - Training
 
Sas training institute in hyderabad
Sas training institute in hyderabadSas training institute in hyderabad
Sas training institute in hyderabad
 
Ecc ad ldap
Ecc ad ldapEcc ad ldap
Ecc ad ldap
 
Sap
SapSap
Sap
 
SAP 4.6 Basic Skills
SAP 4.6 Basic SkillsSAP 4.6 Basic Skills
SAP 4.6 Basic Skills
 
Sap4 basic
Sap4 basicSap4 basic
Sap4 basic
 
SAP HANA direct extractor:Data acquisition
SAP HANA direct extractor:Data acquisition SAP HANA direct extractor:Data acquisition
SAP HANA direct extractor:Data acquisition
 
SAS Programming Notes
SAS Programming NotesSAS Programming Notes
SAS Programming Notes
 
Sso Mac
Sso MacSso Mac
Sso Mac
 

Dernier

INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 

Dernier (20)

INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 

Learn SAS Programming

  • 1. What is SAS? The SAS BI SoftwareThe SAS BI System is an integrated suite of software for enterprise-wide information delivery... Applications of the SAS System include executive information systems; data entry, retrieval, and management; report writing and graphics; statistical and mathematical analysis; business planning, forecasting, and decision support; operations research and project management; statistical quality improvement; computer performance evaluation; and applications development. Read more @ http://sastechies.blogspot.com/2009/11/what-is-sas.html Introduction to SAS Read more @ http://sastechies.blogspot.com/2009/11/introduction-to-sas.html What is SAS system?  The SAS System known well as Statistical Analysis System, is one of the most widely used, flexible data processing, reporting and analyses tools. SAS is a set of solutions for enterprise-wide business users as well as a powerful fourth-generation programming language for performing tasks or analyses in a variety of realms such as these: - Analytic Intelligence General Data Mining and Statistical Analysis Forecasting & Econometrics Operations Research Read more @ http://sastechies.blogspot.com/2009/11/introduction-to-sas.html SAS Books Recommended for industry application These books coupled with SUGI Papers will give you the impetus/basics to learn and explore more on the Internet.1. Professional SAS Programmer's Pocket Reference - Rick Aster       This book would be a must for any SAS Professional I guess.....It's a quick handy book for Syntax and  options......2. SAS Certification Prep Guide: Base Programming - SAS Institute      This book is a Prep Guide for BaseSAS....I would suggest you to read the whole book before you attempt the exam in addition to the SAS Online tutor, as it covers some uncovered syllabus on the latter....3. Cody's Data Cleaning Techniques Using SAS Software - Ron Cody       This book is an excellent source of examples of SAS in real-world applications.... Read more @ http://sastechies.blogspot.com/2009/11/sas-books-recommended-for-industry.html Base SAS tutorials (Slides) for the Beginners !!! ... Here are some links to learning Base SAS...SAS Slides 1 : Introduction to SAS Read more @ http://sastechies.blogspot.com/2009/11/base-sas-tutorials-slides-for-beginners.html Advanced SAS tutorials (Slides) for Beginners !!! Here are some links to learning Advanced SAS Programming...SAS Macros - to learn Macro Programming in SAS.SAS Slides 12 : Macros Read more @ http://sastechies.blogspot.com/2009/11/advanced-sas-tutorials-slides-for.html Quick links to SAS Statements in SAS Documentation... Here are some links to SAS statements and its options in the SAS Documentation...SAS OptionsSAS StatementsSAS ProceduresSAS FunctionsSAS Simple STATs Read more @ http://sastechies.blogspot.com/2009/11/quick-links-to-sas-statements-in-sas.html Base SAS tutorials (Slides) for the Beginners !!! ... SAS Slides 7 : Match Merging with Datastep Read more @ http://sastechies.blogspot.com/2009/11/base-sas-tutorials-slides-for-beginners_13.html SAS macro to Create / Remove a PC Directory... Here's a SAS macro to Create and Remove a PC Directory... Often we ignore Notes and warning in the SAS log when we try to create/remove a directory that does/doesn't exist...This macro first checks for the existence of the directory and then create/delete it or else put a message to the SAS log...try it out :-) /* Macro to Create a directory */ %macro CheckandCreateDir(dir);    options noxwait;    %local rc fileref ;    %let rc = %sysfunc(filename(fileref,&dir)) ;       %if %sysfunc(fexist(&fileref)) %then       %put The directory &dir already exists ;    %else      %do ;          %sysexec mkdir &dir ;          %if &sysrc eq 0 %then %put The directory &dir has been created. ; Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-remove-pc-directory.html Ways to Count the Number of Obs in a dataset and pass it into a macro variable... Well...there are many ways of getting the observation count into a macro variable...but there a few pros and cons in those methods...1. using sql with count(*)..  eg.         proc sql;              select count(*) into :macvar             from dsn;         quit; pros: simple to understand and develop cons: you need to read the dataset in its entirety which requires processing power here...2. datastep  eg.        data new;          set old nobs=num;          call symputx('macvar',num);       run; Read more @ http://sastechies.blogspot.com/2009/11/ways-to-count-number-of-obs-in-dataset.html SAS macro to split dataset by the number of Observations specified Suppose there was a large dataset....This SAS macro program splits the dataset by the number of observations mentioned...macro name%split(DatasetName, No ofobservation to split by)/* creating a dataset with 100000 observations*/ data dsn; do i=1 to 100000; output; end; run; %macro split(dsn,splitby); data _null_; set &dsn nobs=num; Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-split-dataset-by-number-of.html SAS Programming Efficiencies The purpose of this document is to provide tips for improving the efficiency of your SAS programs. It suggests coding techniques, provides guidelines for their use, and compares examples of acceptable and improved ways to accomplish the same task. Most of the tips are limited to DATA step applications.   Efficiency   For the purpose of this discussion, efficiency will be defined simply as obtaining more results from fewer computer resources. When you submit a SAS program, the computer must:  load the required software into memory  compile the program  Read more @ http://sastechies.blogspot.com/2009/11/sas-programming-efficiencies.html SAS macro to reorder dataset variables in alphabetic order... How do you reorder variables in a dataset...I get this many a times.... Here's a macro for you to achieve it...For example I've used a dataset sashelp.flags and created some more variables with variety of variables with names upper / lower cases and _'s to demonstrate the reorder macro....   Please try this macro for yourself and let me know your suggestions....   /* Example dataset with variety of variable names */   data flags; set sashelp.flags; a=2; b=4; Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-reorder-dataset-variables.html SAS Interview Questions and Answers found on the Internet... Here are some more links for SAS Interview Questions and Answers found on the Internet...http://www.sconsig.com/tipscons/list_sas_tech_questions.htmhttp://www.globalstatements.com/sas/jobs/technicalinterview.html http://studysas.blogspot.com Read more @ http://sastechies.blogspot.com/2009/11/sas-interview-questions-and-answers.html SAS Interview Questions and Answers(1) What SAS statements would you code to read an external raw data file to a DATA step? We use SAS statements – FILENAME – to specify the location of the file INFILE - Identifies an external file to read with an INPUT statement INPUT – to specify the variables that the data is identified with. Read more @ http://sastechies.blogspot.com/2009/11/sas-interview-questions.html SAS Interview Questions and Answers(2) If you're not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set? Data _null_;    _NULL_ - specifies that SAS does not create a data set when it executes the DATA step.   Data _null_ is majorly used in   creating quick macro variables with call symput routine eg.            Data _null_;              Set somedata;              Call symput(‘macvar’,dsnvariable);          Run; Creating a Custom Report Eg. Read more @ http://sastechies.blogspot.com/2009/11/sas-interview-questions-and-answers2.html Advanced Macro Topics A document that discusses Advanced Macro topics Read more @ http://sastechies.blogspot.com/2009/11/advanced-macro-topics.html SAS Instructor's Programming Tip - Combining Data ... Read more @ http://sastechies.blogspot.com/2009/11/sas-instructors-programming-tip.html Opening SAS Data Files - A video tutorial Read more @ http://sastechies.blogspot.com/2009/11/opening-sas-data-files-video-tutorial.html SAS Add-in to Microsoft Office SAS Add-In for Microsoft Office enables business users to trans-parently leverage the power of SAS data access, reporting and analytics directly from Microsoft Office via integrated menus and toolbars.SAS Add-in to Microsoft Office Video Tutorial 1SAS Add-in to Microsoft Office Video Tutorial 2A document that discusses SAS Add-in to Microsoft Office Read more @ http://sastechies.blogspot.com/2009/11/sas-add-in-to-microsoft-office.html SAS Certification Preparation Guide for SAS 9 SAS Certification Preparation Guide Read more @ http://sastechies.blogspot.com/2009/11/sas-certification-preparation-guide-for.html SAS Publishing - SAS 9.1 Programming I & II Course... Sas Publishing - Sas 9.1 Programming I Essentials Course Notes (2005) Read more @ http://sastechies.blogspot.com/2009/11/sas-publishing-sas-91-programming-i.html Use SAS function Propcase() to streamline Google Contacts You might think I am crazy...but I have been using this macro for a long time to fix some contacts in my Google Contacts...I get a little irritated when I can't find a particular person by email...so I wrote this macro...This macro takes for Input a .csv file that is exported from Google Contacts and outputs a file that is ready to be imported to Google Contacts....often I wanted to have Names in the proper case...Try it yourself and let me know if it needs any tweaks...Propcase in SAS Documentation. %macro organizeGoogleContacts(infile,outfile); /*Import your contacts into SAS */ data googlegroups; infile &infile dlm=',' dsd lrecl=32767 firstobs=2; Read more @ http://sastechies.blogspot.com/2009/11/use-sas-function-propcase-to-streamline.html SAS Macro to Create a delimited text file from a SAS dataset... A document that discusses SAS Macro to Create a delimited text file from a SAS data set.. options mprint;   data one;   input id name :$20. amount ;   date=today();   format amount dollar10.2            date mmddyy10.;   label id= Customer ID Number ; datalines; 1 Grant   57.23 2 Michael 45.68 3 Tammy   53.21 ; Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-create-delimited-text-file.html How can I create a CSV file with ODS? A document that discusses How can I create a CSV file with ODS? /* example 1: Release 8.1 */    ods xml body='c:estest.csv' type=csv;    proc print data=sashelp.class;    run;    ods xml close; Read more @ http://sastechies.blogspot.com/2009/11/how-can-i-create-csv-file-with-ods.html Use a Microsoft Excel file to create a user-defined format A document that discusses Use a Microsoft Excel file to create a user-defined format /*Create an Excel spreadsheet for the example. */ filename test 'c:estfmt.csv'; proc export data=sashelp.class outfile=test   dbms=csv replace; run; Read more @ http://sastechies.blogspot.com/2009/11/use-microsoft-excel-file-to-create-user.html SAS Macro to split a dataset into multiple datasets vertically with a common primary key This macro splits a dataset to multiple datasets vertically with a common primary key. For eg, a dataset has 400 fields and 20,000 records. If we can split the dataset into two, with 200 fields and 20,000 records in each dataset with a common field like loan number as primary key would be helpful to load the details for analysis.   /** To be called like this... %splitdsnverticallykey(dsn,varperdsn,keyvars=); eg. %splitdsnverticallykey(sashelp.vtable,4,keyvars=memname libname);   Where -----------   dsn - libname.datasetname to be split varperdsn - How many vars per dsn excluding the key variables keyvars - specify the primary key variables */ Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-to-split-dataset-into.html SAS Certification Base SAS Practice Exam SAS BASE Programming Exam Read more @ http://sastechies.blogspot.com/2009/11/sas-certification-base-sas-practice.html SAS Certification Advanced SAS Practice Exam Sample Advanced SAS Exam Read more @ http://sastechies.blogspot.com/2009/11/sas-certification-advanced-sas-practice.html Other interesting SAS Blogs for references... Here are some other interesting SAS Blogs for references...http://www.sastips.com/http://www.afhood.com/blog/http://www.thejuliagroup.com/blog/ Read more @ http://sastechies.blogspot.com/2009/11/other-interesting-sas-blogs-for.html SAS Macro that reads the filenames available at a particular directory on any FTP server (i.e. Windows Network Drive/Unix/Mainframe) Here's a macro that reads the filenames available at a particular directory on any FTP server (i.e. Windows Network Drive/Unix/Mainframe)... For Windows network drives we use the Filename Pipe Statement For Mainframe and Unix we use the FileName FTP protocol statement. For further reference please refer to Filename statements in SAS Documentation. First we need to create 2 Excel files ServerList.xls – 3 columns with servertype | host | sourcedir Read more @ http://sastechies.blogspot.com/2009/11/sas-macro-that-lists-files-at.html