SlideShare a Scribd company logo
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 SASRead 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 ResearchRead more @ http://sastechies.blogspot.com/2009/11/introduction-to-sas.html  SAS Books Recommended for industry applicationThese 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 STATsRead 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 specifiedSuppose 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 EfficienciesThe 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.comRead 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 fileINFILE - Identifies an external file to read with an INPUT statementINPUT – 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 TopicsA document that discusses Advanced Macro topicsRead 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 tutorialRead more @ http://sastechies.blogspot.com/2009/11/opening-sas-data-files-video-tutorial.html  SAS Add-in to Microsoft OfficeSAS 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 OfficeRead more @ http://sastechies.blogspot.com/2009/11/sas-add-in-to-microsoft-office.html  SAS Certification Preparation Guide for SAS 9SAS 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 ContactsYou 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.232 Michael 45.683 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:\test\test.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 formatA document that discusses Use a Microsoft Excel file to create a user-defined format /*Create an Excel spreadsheet for the example. */ filename test 'c:\testfmt.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 keyThis 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 splitvarperdsn - How many vars per dsn excluding the key variableskeyvars - 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 ExamSAS BASE Programming Exam Read more @ http://sastechies.blogspot.com/2009/11/sas-certification-base-sas-practice.html  SAS Certification Advanced SAS Practice ExamSample 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 StatementFor 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 | sourcedirRead 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

More Related Content

What's hot (20)

PDF
Introduction To Sas
halasti
 
PDF
SAS cheat sheet
Ali Ajouz
 
PDF
Sas cheat
imaduddin91
 
PPT
Arrays in SAS
guest2160992
 
PPT
Understanding SAS Data Step Processing
guest2160992
 
PPT
SAS - overview of SAS
Vibrant Technologies & Computers
 
PDF
Introduction to SAS Data Set Options
Mark Tabladillo
 
PPTX
SAS basics Step by step learning
Venkata Reddy Konasani
 
PPT
Basics Of SAS Programming Language
guest2160992
 
PPT
INTRODUCTION TO SAS
Bhuwanesh Rawat
 
PPT
SAS Proc SQL
guest2160992
 
PPT
SAS Macros part 1
venkatam
 
PPT
SAS Functions
guest2160992
 
PDF
Base SAS Exam Questions
guestc45097
 
PPT
CDISC SDTM Domain Presentation
Ankur Sharma
 
PDF
Sas Presentation
Asli Yazagan
 
PPT
Utility Procedures in SAS
guest2160992
 
PPTX
Introduction to clinical sas
Vijayaraghava Karpurapu
 
PPT
SAS Access / SAS Connect
guest2160992
 
Introduction To Sas
halasti
 
SAS cheat sheet
Ali Ajouz
 
Sas cheat
imaduddin91
 
Arrays in SAS
guest2160992
 
Understanding SAS Data Step Processing
guest2160992
 
SAS - overview of SAS
Vibrant Technologies & Computers
 
Introduction to SAS Data Set Options
Mark Tabladillo
 
SAS basics Step by step learning
Venkata Reddy Konasani
 
Basics Of SAS Programming Language
guest2160992
 
INTRODUCTION TO SAS
Bhuwanesh Rawat
 
SAS Proc SQL
guest2160992
 
SAS Macros part 1
venkatam
 
SAS Functions
guest2160992
 
Base SAS Exam Questions
guestc45097
 
CDISC SDTM Domain Presentation
Ankur Sharma
 
Sas Presentation
Asli Yazagan
 
Utility Procedures in SAS
guest2160992
 
Introduction to clinical sas
Vijayaraghava Karpurapu
 
SAS Access / SAS Connect
guest2160992
 

Viewers also liked (15)

PPTX
Sas demo
rvmfinishingschool
 
PDF
SAS Presentation
Kali Howard
 
PDF
Base SAS Full Sample Paper
Jimmy Rana
 
DOC
64 interview questions
Tarikul Alam
 
PPT
Data Match Merging in SAS
guest2160992
 
DOCX
Sas Macro Examples
SASTechies
 
PPTX
Yahoo7 Tech Night - SASS
Andy Sharman
 
PDF
Drupal 7: Theming with the SASS Framework
Eric Sembrat
 
DOC
Resume__DotNet_Koushik_Deb
Koushik Deb
 
PPTX
sas project work
Avinash Anand
 
PPT
Sql Projects-Detail
Tahrizwan
 
PDF
Deploy SSRS Project - SQL Server 2014
Ram Kedem
 
PDF
SAS for Beginners
Colby Stoever
 
PPT
Conditional statements in sas
venkatam
 
PPTX
Sas institute project presentation
aghussien
 
SAS Presentation
Kali Howard
 
Base SAS Full Sample Paper
Jimmy Rana
 
64 interview questions
Tarikul Alam
 
Data Match Merging in SAS
guest2160992
 
Sas Macro Examples
SASTechies
 
Yahoo7 Tech Night - SASS
Andy Sharman
 
Drupal 7: Theming with the SASS Framework
Eric Sembrat
 
Resume__DotNet_Koushik_Deb
Koushik Deb
 
sas project work
Avinash Anand
 
Sql Projects-Detail
Tahrizwan
 
Deploy SSRS Project - SQL Server 2014
Ram Kedem
 
SAS for Beginners
Colby Stoever
 
Conditional statements in sas
venkatam
 
Sas institute project presentation
aghussien
 
Ad

Similar to Learn SAS Programming (20)

PPT
BASE SAS Training presentation of coding
shamarites
 
PDF
Analytics with SAS
Edureka!
 
PDF
SAS Online Training
revanthonlineenquiry
 
PDF
Sas language reference concepts
imaduddin91
 
PDF
pm1
Phil Mason
 
PPTX
Sas clinical training
Vasudha India
 
DOCX
Sas training institute in marathahalli bangalore
Bizsmart Solutions
 
PPT
Prog1 chap1 and chap 2
rowensCap
 
PPT
Sas short course_presentation_11-4-09
Prashant Ph
 
PPT
Sas short course_presentation_11-4-09
Prashant Ph
 
DOCX
SAS Programming Notes
Gnana Murthy A
 
PPT
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008
untellectualism
 
PDF
Habits of Effective SAS Programmers
Sunil Gupta
 
PDF
SAS Online Training
Nagendra Kumar
 
PDF
SAS Internal Training
Amrih Muktiaji
 
DOC
SAS Online Training Hyderabad India
Srinivasa Rao
 
PPT
Sas classes in mumbai
Vibrant Technologies & Computers
 
PDF
Sharpening Your SAS Skills 1st Edition Sunil Gupta
hemamrsaaban
 
DOC
Introduction to SAS
Imam Jaffer
 
BASE SAS Training presentation of coding
shamarites
 
Analytics with SAS
Edureka!
 
SAS Online Training
revanthonlineenquiry
 
Sas language reference concepts
imaduddin91
 
Sas clinical training
Vasudha India
 
Sas training institute in marathahalli bangalore
Bizsmart Solutions
 
Prog1 chap1 and chap 2
rowensCap
 
Sas short course_presentation_11-4-09
Prashant Ph
 
Sas short course_presentation_11-4-09
Prashant Ph
 
SAS Programming Notes
Gnana Murthy A
 
8323 Stats - Lesson 1 - 03 Introduction To Sas 2008
untellectualism
 
Habits of Effective SAS Programmers
Sunil Gupta
 
SAS Online Training
Nagendra Kumar
 
SAS Internal Training
Amrih Muktiaji
 
SAS Online Training Hyderabad India
Srinivasa Rao
 
Sas classes in mumbai
Vibrant Technologies & Computers
 
Sharpening Your SAS Skills 1st Edition Sunil Gupta
hemamrsaaban
 
Introduction to SAS
Imam Jaffer
 
Ad

Recently uploaded (20)

PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Council of Chalcedon Re-Examined
Smiling Lungs
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
Introduction to Indian Writing in English
Trushali Dodiya
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Council of Chalcedon Re-Examined
Smiling Lungs
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Introduction presentation of the patentbutler tool
MIPLM
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 

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 SASRead 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 ResearchRead more @ http://sastechies.blogspot.com/2009/11/introduction-to-sas.html SAS Books Recommended for industry applicationThese 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 STATsRead 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 specifiedSuppose 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 EfficienciesThe 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.comRead 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 fileINFILE - Identifies an external file to read with an INPUT statementINPUT – 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 TopicsA document that discusses Advanced Macro topicsRead 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 tutorialRead more @ http://sastechies.blogspot.com/2009/11/opening-sas-data-files-video-tutorial.html SAS Add-in to Microsoft OfficeSAS 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 OfficeRead more @ http://sastechies.blogspot.com/2009/11/sas-add-in-to-microsoft-office.html SAS Certification Preparation Guide for SAS 9SAS 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 ContactsYou 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.232 Michael 45.683 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:\test\test.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 formatA document that discusses Use a Microsoft Excel file to create a user-defined format /*Create an Excel spreadsheet for the example. */ filename test 'c:\testfmt.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 keyThis 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 splitvarperdsn - How many vars per dsn excluding the key variableskeyvars - 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 ExamSAS BASE Programming Exam Read more @ http://sastechies.blogspot.com/2009/11/sas-certification-base-sas-practice.html SAS Certification Advanced SAS Practice ExamSample 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 StatementFor 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 | sourcedirRead more @ http://sastechies.blogspot.com/2009/11/sas-macro-that-lists-files-at.html