Enough really good SAS ® tips to fill a book Arthur Tabachneck, President and CEO, myqna.org.

Slides:



Advertisements
Similar presentations
Support.ebsco.com Australia/New Zealand Reference Centre Basic Searching Tutorial.
Advertisements

For Details Visit : or For any Help Contact the Librarian EBSCOhost 2.0.
The Internet 8th Edition Tutorial 3 Using Web-Based Services for Communication and Collaboration.
Social Media.
Anvil Manual for Dealers. URL: 1. Creating a contract 2. Adding a customer 3.
Worst, but still importable data I’ve ever seen Arthur Tabachneck Insurance Bureau of Canada.
Next Presentation: Presenter: Arthur Tabachneck Copy and Paste from Word or Excel to SAS Art holds a PhD from Michigan State University, has been a SAS.
Researching Your Presentation
MASUG December 5, Agenda Announcements Announcements Tips & Tricks Tips & Tricks Presentation: Presentation: Working Smarter, Not Harder with DDE:
Automagically Copying and Pasting Variable Names Arthur Tabachneck Roger DeAngelis Randy Herbison Insurance Bureau of Canada CompuCraft Inc Westat John.
Overview To Date. You Should have -- Awareness of “creativity” – Yours and others Experience critiquing creative work – Peer Reviews Insight into creative.
Basic And Advanced SAS Programming
ESSAY WRITING Can be fun.
June is an easy way to communicate. It costs nothing to send an , but it does require a connection to the Internet. You can.
Pet Fish and High Cholesterol in the WHI OS: An Analysis Example Joe Larson 5 / 6 / 09.
EDITING A DOCUMENT Lesson 9. Translate ◦ Feature that allows users to translate their document into other languages ◦ Must be connected to the Internet.
This presentation will be all about s, etiquette and software. I will be going through each one of these individually and thoroughly step.
Let’s Make An Form! Bonney Armstrong GD 444 Westwood College February 9, 2005.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
Support.ebsco.com EBSCOhost Basic Searching for Academic Libraries Tutorial.
April 1, Welcome! The 2015 B-13 Data Collection webinar will begin in a few moments. –Event number: –Event password: 2015B13 To hear.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
PHP meets MySQL.
U3A Computing Class Leader – Brian Moore Week 5 of 10 weeks. Mondays 4:15 to 5:45 pm Next week is half term then an Inset day So Next lesson is 4 November.
Support.ebsco.com EBSCOhost Basic Searching for Academic Libraries Tutorial.
SAS Efficiency Techniques and Methods By Kelley Weston Sr. Statistical Programmer Quintiles.
SCHOOLOGY. Click on Sign Up Choose Instructor Fill Out Form / Register o Use SCHOOL address Fill in Country / State / and type.
What makes a good interactive resume? Click for detailed information Multimedia Navigation Communication.
Objectives Student will be able to: Go to and bookmark the Edmodo website. Create an Edmodo account. Join class groups. Change account settings. Edit.
Creating a Database Designing Structure, Capturing and Presenting Data.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT OUTLOOK Lesson 1 – Outlook Basics and .
TASS Meeting Copy and Paste from Excel to SAS September 19th, 2008 Copy and Paste from Excel to SAS Dr. Arthur Tabachneck, Director Data Management with.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
The Internet 8th Edition Tutorial 3 Using Web-Based Services for Communication and Collaboration.
Mtivity Client Support System Quick start guide. Mtivity Client Support System We are very pleased to announce the launch of a new Client Support System.
Microsoft Outlook 2010 Instructor: Julie Thorngren
Living Online Module Lesson 27 — Evaluating Online Information
YET ANOTHER TIPS, TRICKS, TRAPS, TECHNIQUES PRESENTATION: A Random Selection of What I Learned From 15+ Years of SAS Programming John Pirnat Kaiser Permanente.
GOOGLE GROUPS TRAINING How to use the internet to make the Own It! project teams as efficient and successful as possible.
Google Mail. Navigating Visit Sign in using your gmail address and password.
HINDU STYLE PORTFOLIO TEMPLATE
“LAG with a WHERE” and other DATA Step Stories Neil Howard A.
CC07 PhUSE 2011 Seven Sharp tips for Clinical Programmers David Garbutt Rohit Banga BIOP AG.
TASS Meeting Using Multiple DOW Loops September 25th, 2009 Using Multiple DOW Loops Dr. Arthur Tabachneck Director, Data Management Idea stolen from a.
Do not put content on the brand signature area NOBS for Noobs David B. Horvath, CCP, MS PhilaSUG Winter 2015 Meeting NOBS for Noobs.
TASS Meeting using inputn to re-format data September 25 th, 2009 using inputn to re-format data Dr. Arthur Tabachneck Director, Data Management Note:
Is This Website A Useful Resource? Helpful Tips. A Useful Website Has... Quality, depth and usefulness of content clear statement of the content, including.
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Facebook Project – Danita Lewis Facebook can help you connect and share history of people’s lives. You can complete one or more of the following pages.
SIGMA Requestor Training In this presentation we will cover : How to log a Sigma ticket How to update a ticket via the notification function How.
St. Mary’s Catholic School, Mayville Mrs. Kaiser, Technology Teacher.
GOOGLE LEARNING TO USE YOUR G-MAIL ACCOUNT.
Working Efficiently with Large SAS® Datasets Vishal Jain Senior Programmer.
Sending effective and professional s . Session aims and objectives Lesson Aims and Objectives send s that are fit for purpose and audience.
TechKnowlogy Conference August 2, 2011 Using GoogleDocs for Collaboration.
DATA INPUT AND OUTPUT.
Welcome! The 2015 B-13 Data Collection webinar will begin in a few moments. Event number: Event password: 2015B13 To hear the presentation.
Handling Data Designing Structure, Capturing and Presenting Data
Markle Site Map + Wireframes.
NextGen Purchasing Calendar Year End 1099 Process
EBSCOhost Basic Searching for Academic Libraries
Chance to make SAS-L History!
TEACHER ACCESS CENTER TRAINING TAC 4.1 GRADEBOOK SETUP AUGUST 2, 2018
Student Transcripts Service (STS): Sending Your Marks to Post-Secondary Institutions (PSI) November 2018.
Handling Data Designing Structure, Capturing and Presenting Data
SCPM Survival Guide for PCD Suppliers
a useful SAS 9.2 feature I wasn’t aware of *
SBISD Student Athlete Presentation
Student Transcripts Service (STS): Sending Your Marks to Post-Secondary Institutions (PSI) November 2018.
Presentation transcript:

Enough really good SAS ® tips to fill a book Arthur Tabachneck, President and CEO, myqna.org

SAS users have a number of resources available support.sas.com/forums support.sas.com been around since 1986 large (almost 368,000 posts) popular (36,788 distinct addresses) searchable like a very large inbox user owned and controlled

sas-l posts, like any s, contain: From: Subject: Chance to make SAS-L history Date: Tuesday, April 5, 2011, 3:21 pm a message, of any length, that probably contains a question, an answer, a suggestion, a comment, an explanation and/or an opinion

and, like any set of s, a post and all of its responses comprise a thread From: Subject: Re: Chance to make SAS-L history Date: Tuesday, April 5, 2011, 3:22 pm a message, of any length, that probably contains a question, an answer, a suggestion, a comment, an explanation and/or an opinion

Join me in making this the longest thread that has ever existed on SAS-L Pick your best tip and post it

you can find all 250+ tips at: Links to all of the original posts Subject Category link to download the index as an Excel file The date each tip was posted

this is definitely NOT the first collection of tips followed by publishing two editions of SAS tips and techniques from around the globe tips can also be found at: Phil Mason posted daily tips on SAS-L in blogs.sas.com/sasdummy blogs.sas.com/sasdummy and probably at many other sites I’m not aware of

Can we ever get enough tips?Of course not!

A Google Search for: make sas-l history

Chance to Make SAS-L History My 5 favorites of the more than 250 tips that were posted

A Simple Application of the Hash Method Have you ever needed to split a dataset into multiple files based on the various levels represented by one of the variables?

A Simple Application of the Hash Method for example, given sashelp.class

A Simple Application of the Hash Method and you need to create separate files for each sex +

A Simple Application of the Hash Method create an indexed copy of the file data temp (index = (sex)); set sashelp.class; run;

data temp (index = (sex)); set sashelp.class; run; A Simple Application of the Hash Method data _null_; dcl hash hh ( ); hh.definekey (‘k’ ); hh.definedata (‘sex’,’name’,’age’,’height’); hh.definedone (); do k = 1 by 1 until (last.sex); set temp; by sex; hh.add (); end; hh.output (dataset: sex); run; declare a hash in a datastep to split the file

Have you ever seen an old-style macro? (they still work!) macro p; proc print; run; %

Old Style Macros following the last example, running the program (?) below: p

Old Style Macros will produce:

Have you ever wanted your computer to let you know that a job has finished? photo courtesy of cheezburger.com

FILENAME mail SUBJECT="A message from SAS"; data _null_; file mail; PUT "Your job finished! Go have a nice weekend."; PUT "!EM_SEND!"; run; Are we there yet? have your computer text your cell phone

Are we there yet? Of course this may not work with all cell phones photo by daryl sng see: for usage rights

Did you know that proc summary can transpose data? data have; input memberID IC charge; cards; ; suppose you had the following file:

and you needed the following file data need; input memberID IC_1-IC_3 charge1-charge3; cards ; ;

using proc summary makes it easy*: proc summary nway data=have missing; class memberID; output out=want (drop=_:) idgroup(out[3](ic charge)=); run; *see: for details

options caps; filename temp temp; data _null_; file temp; informat sentence $100.; input sentence &; put sentence; cards; Let's see if sas spell procdure can be used to verify whether tha seperate words in this, uhm, flie are, uhm, valid against a stantard internal dictionary and let’s see how versatile it is ; suppose you had the following file

and you needed to find: which words were misspelled suggestions for correcting the errors how often each word was used

to find word frequency just run: proc spell in=temp nomaster; run;

to find misspellings run: proc spell in=temp verify; run;

to get suggestions for misspellings run: proc spell in=temp suggest; run;

however, in the current example, one of the suggestions will be: unrecognized word Freq Line(s) Suggestions: SAS 1 1 SAP which might explain why the proc is no longer documented!

Your comments and questions are valued and encouraged. Contact the author: Arthur Tabachneck, Ph.D. Thornhill, Ontario Canada atabachneck at gmail dot com