SAS Certification Handout #6: Ch

Size: px
Start display at page:

Download "SAS Certification Handout #6: Ch"

Transcription

1 SAS Certification Handout #6: Ch /************ Ch. 16 ******************* /* Suppose we have numeric variables ModelNumber Price Weight Change and date variable Date, plus a string variable Designer (with embedded blanks) /* Standard numeric data (+strings Date & Designer), allowing column input [only works for standard numeric values] note embedded blank in Designer: data a6 input ModelNumber Weight Price Change Date $ Designer $ /* cards May07 B Carlisle Feb E Oct14 K Smith proc print data=a6 Obs ModelNumber Weight Price Change Date Designer May07 B Carlisle Feb Oct14 K Smith /* Standard numeric data (+strings Date & Designer), requiring formatted input [pointer control]: Note need for missing value. and INFORMAT data a6 input ModelNumber Price +1 Weight Change +1 Date $ +2 Designer $11. cards May07 B Carlisle Feb E Oct14 K Smith proc print data=a May07 B Carlisle Feb Oct14 K Smith

2 /* Nonstandard numeric data (including Date), requiring INFORMAT, and also here requiring formatted input [pointer control]: data a6 +1 Date date7. +1 Designer $12. cards 5315 $25, (1.72% 30May07 B Carlisle 3214 $21, % 02Feb $1, % 19Oct14 K Smith proc print data=a B Carlisle K Smith /* PAD: dealing with missing values at end of a record here INFILE calls file exactly same as shown in CARDS above data a61 infile "C:\jrstevens\Teaching\SAS_Cert\Notes\a6.txt" +1 Date date7. +2 Designer $11. proc print data=a B Carlisle data a61 infile "C:\jrstevens\Teaching\SAS_Cert\Notes\a6.txt" pad +1 Date date7. +1 Designer $12. proc print data=a B Carlisle K Smith

3 /* PAD also is needed with INFILE when end-of-record markers (line returns) don't line up with variable-length records data a62 input X $ 1-2 Y 4-9 cards AB Obs X Y CD AB EF CD proc print data=a62 3 EF data a62b /* a62.txt has exact contents as CARDS lines above infile "C:\jrstevens\Teaching\SAS_Cert\Notes\a62.txt" input X $ 1-2 Y 4-9 proc print data=a62b Obs X Y 1 AB CD. data a62c infile "C:\jrstevens\Teaching\SAS_Cert\Notes\a62.txt" pad input X $ 1-2 Y 4-9 proc print data=a62c Obs X Y 1 AB CD EF /************ Ch. 17 ******************* /* Compare PAD to MISSOVER p. 544 says "The MISSOVER options works only for missing values that occur at the end of the record." It is needed when, using list input, it does not find values in the current line for all variables to be input. data a61 infile "C:\jrstevens\Teaching\SAS_Cert\Notes\a6.txt" missover +1 Date date7. +1 Designer $12. proc print data=a B Carlisle

4 /* PUT (p. 557) & DLM data a6 +1 Date date7. +1 Designer $12. cards 5315 $25, (1.72% 30May07 B Carlisle 3214 $21, % 02Feb $1, % 19Oct14 K Smith data _null_ set a6 file "C:\jrstevens\Teaching\SAS_Cert\Notes\a6CSV.csv" dlm=',' put ModelNumber Price : comma10.2 Weight Change : comma6.2 Date : date7. Designer : $ ,25,000.00,561,-1.72,30MAY00,B Carlisle 3214,21,000.21,623,2.10,02FEB12, 3321,1,200.00,.,2.50,09OCT14,K Smith data _null_ set a6 file "C:\jrstevens\Teaching\SAS_Cert\Notes\a6CSV.csv" dlm=',' dsd /* NOTE: can use DSD for non-comma delimiters, too (p. 546) put ModelNumber Price : comma10.2 Weight Change : comma6.2 Date : date7. Designer : $ ,"25,000.00",561,-1.72,30MAY00,B Carlisle 3214,"21,000.21",623,2.10,02FEB12, 3321,"1,200.00",,2.50,09OCT14,K Smith /* LENGTH $w. affects allowed length only, not # columns data a6 length X $14. input X $ Y $ Z $ cards Albuquerque NM R 45 Schenectady NY D 23 Obs X Y Z 1 Albuquerque NM R proc print data=a6 2 Schenectady NY D /* INFORMAT $w. affects both allowed length and # columns data a6 input X $14. Y $ Z $ cards Albuquerque NM R 45 Schenectady NY D 23 Obs X Y Z proc print data=a6 1 Albuquerque NM R 45 2 Schenectady NY D 23

5 /* Can use & with embedded blanks, too: data a6 length X $14. input X & $ Y $ Z $ cards Albuquerque NM R 45 Schenectady NY D 23 Obs X Y Z proc print data=a6 1 Albuquerque NM R 45 2 Schenectady NY D 23 /* Reading non-standard values without embedded blanks data a6 input X cards 1,233,541 Obs X 3,532,511 /* LOG: invalid value proc print data=a /* Without specifying INFORMAT columns data a6 input X comma. cards 1,233,541 Obs X 3,532, proc print data=a6 2 3 /* Using : to indicate nonstandard data value data a6 input X : comma. cards 1,233,541 3,532,511 Obs X proc print data=a /* Specifying INFORMAT columns data a6 input X comma10. cards 1,233,541 3,532,511 proc print data=a6 Obs X

6 /* Mixed input styles: x1* Column: fixed columns and standard data x2* Formatted: fixed columns and nonstandard data (so need INFORMAT) x3* List: don't begin or end in same column (free format) x4* Modified List: free format and have embedded blanks or nonstandard data data a6 length x4 $11. input x1 $ 1-4 x2 mmddyy8. temp $ +2 x x4 & $ /* cards filler 321 Los Angeles fs 512 Logan proc print data=a6 format x2 date8. Obs x4 x1 x2 temp x3 1 Los Angeles JUL12 filler Logan JAN15 fs 512 /************ Ch. 18 ******************* /* Date INFORMAT options data a6 x1 x2 x3 x4 date9. date=x1 format date date9./* cards /15/99 15Oct99 15Oct Jan60 02Jan1960 proc print data=a6 Obs x1 x2 x3 x4 date OCT JAN2060

7 /* Note value pointer control with dates data a6 input x1 mmddyy6. x2 mmddyy8. Obs x1 x2 x3 x4 date x3 date OCT1999 x4 date9. date=x1 format date date JAN2060 cards /15/99 15Oct99 15Oct Jan60 02Jan1960 proc print data=a6 /* Time INFORMAT options note that w in TIMEw. refers to number of characters to use, including : (Similar as in DATETIMEw.) data a6 x1 x2 time5. time=x1 format time time7./* cards Obs x1 x2 time 12:00: : :00 05:23: :23 22:15:56 22: :23:34 00:01:01 00: :15 proc print data=a :01:01 /* Again: be careful with list input data a6 input x1 time11. x2 time5. time=x1 format time time7. cards Obs x1 x2 time 12:00: :00 05:23: : :00 22:15:56 22: :23:34 00:01:01 00: :15 proc print data=a :01:01

8 /* YEARCUTOFF options yearcutoff=1970 /* compare to previous where default is 1920 data a6 x1 x2 x3 x4 date9. date=x1 format date date9./* cards /15/99 15Oct99 15Oct Jan60 02Jan1960 proc print data=a6 options yearcutoff=1920 /* reset to default Obs x1 x2 x3 x4 date OCT JAN2060 /* T2-T1 (Ch. 18) vs. DATDIF (Ch. 13) data a6 T1 T2 mmddyy6. T2_T1_direct = T2-T1 T2_T1_datdif = datdif(t1,t2,'act/act') /* NOTE: depending on context of difference taken, sometimes need to +1 at end cards proc print data=a6 format T1 weekdate21. T2 worddate14. Obs T1 T2 T2_T1_direct T2_T1_datdif 1 Fri, Oct 15, 1999 Oct 20, Tue, Feb 28, 2012 Mar 1, Sat, Feb 28, 2015 Mar 1,

9 /* Going back to Ch. 17, a better use for MISSOVER is when using list input, and have missing values at end of records data temp input X $ Y $ Z $ cards abc def ghi jkl mno stu vwx yz@ /* LOG: NOTE: SAS went to a new line when INPUT statement reached past the end of a line. Obs X Y Z proc print data=temp 1 abc def ghi 2 jkl mno stu /* Reading in a6temp.txt (same contents as CARDS above) data a6temp infile "C:\jrstevens\Teaching\SAS_Cert\Notes\a6temp.txt" input X $ Y $ Z $ /* LOG: NOTE: SAS went to a new line when INPUT statement reached past the end of a line. Obs X Y Z proc print data=temp 1 abc def ghi 2 jkl mno stu /* Reading in a6temp.txt (same contents as CARDS above) data a6temp infile "C:\jrstevens\Teaching\SAS_Cert\Notes\a6temp.txt" missover input X $ Y $ Z $ Obs X Y Z proc print data=a6temp 1 abc def ghi 2 jkl mno 3 stu vwx yz@

Chapter 2: Getting Data Into SAS

Chapter 2: Getting Data Into SAS Chapter 2: Getting Data Into SAS Data stored in many different forms/formats. Four categories of ways to read in data. 1. Entering data directly through keyboard 2. Creating SAS data sets from raw data

More information

18. Reading date and )me values. GIORGIO RUSSOLILLO - Cours de prépara)on à la cer)fica)on SAS «Base Programming» 394

18. Reading date and )me values. GIORGIO RUSSOLILLO - Cours de prépara)on à la cer)fica)on SAS «Base Programming» 394 18. Reading date and )me values 394 How SAS stores date values - A SAS date value is stored as the number of days from January 1, 1960, to the given date - A SAS Bme value is stored as the number of seconds

More information

The INPUT Statement: Where It

The INPUT Statement: Where It The INPUT Statement: Where It s @ Ron Cody email: ron.cody@gmail.com Author page: Support.sas.com/cody List Directed Input data list input X Y A $ Z datalines 1 2 hello 3 4 5 goodbye 6 title 'List Directed

More information

SAS Certification Handout #7: Ch

SAS Certification Handout #7: Ch SAS Certification Handout #7: Ch. 19-21 /************ Ch. 19 ********************/ /* Consider a mailing list example, partial from http://mlb.mlb.com/team/ 1---+----10---+----20---+ Kansas City Royals

More information

Accessing Data and Creating Data Structures. SAS Global Certification Webinar Series

Accessing Data and Creating Data Structures. SAS Global Certification Webinar Series Accessing Data and Creating Data Structures SAS Global Certification Webinar Series Accessing Data and Creating Data Structures Becky Gray Certification Exam Developer SAS Global Certification Michele

More information

17. Reading free-format data. GIORGIO RUSSOLILLO - Cours de prépara)on à la cer)fica)on SAS «Base Programming» 386

17. Reading free-format data. GIORGIO RUSSOLILLO - Cours de prépara)on à la cer)fica)on SAS «Base Programming» 386 17. Reading free-format data 386 Reading free format data: The list input A raw dataset is free-format when it is not arranged in fixed fields. -> Fields are separated by a delimiter List input allows

More information

Terminal Interface Module Programming Manual

Terminal Interface Module Programming Manual Page 1 of 6 The is intended to operate as a LCD terminal over an RS232 interface: 9600 baud, 8 data bits and Even Parity. Module ID: Is set from the DIP switches 1 to. Terminal keys, mapped to ASCII: LCD

More information

16. Reading raw data in fixed fields. GIORGIO RUSSOLILLO - Cours de prépara)on à la cer)fica)on SAS «Base Programming» 364

16. Reading raw data in fixed fields. GIORGIO RUSSOLILLO - Cours de prépara)on à la cer)fica)on SAS «Base Programming» 364 16. Reading raw data in fixed fields 364 Reading raw Dataset: three solu)ons You can mix all of them! Data that SAS cannot read without further informa)on 365 Reading standard data with column input: review

More information

SAS 101. Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23. By Tasha Chapman, Oregon Health Authority

SAS 101. Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23. By Tasha Chapman, Oregon Health Authority SAS 101 Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23 By Tasha Chapman, Oregon Health Authority Topics covered All the leftovers! Infile options Missover LRECL=/Pad/Truncover

More information

DSCI 325: Handout 2 Getting Data into SAS Spring 2017

DSCI 325: Handout 2 Getting Data into SAS Spring 2017 DSCI 325: Handout 2 Getting Data into SAS Spring 2017 Data sets come in many different formats. In some situations, data sets are stored on paper (e.g., surveys) and other times data are stored in huge

More information

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS TO SAS NEED FOR SAS WHO USES SAS WHAT IS SAS? OVERVIEW OF BASE SAS SOFTWARE DATA MANAGEMENT FACILITY STRUCTURE OF SAS DATASET SAS PROGRAM PROGRAMMING LANGUAGE ELEMENTS OF THE SAS LANGUAGE RULES FOR SAS

More information

Contents. Introduction Full Setting the System Part Setting the System (using Part 1)... 2

Contents. Introduction Full Setting the System Part Setting the System (using Part 1)... 2 TM C P 8 L L C D U S E R M A N UA L TM Contents Introduction............................ 1 Full Setting the System.................... 1 Part Setting the System (using Part 1)........ 2 Part Setting the

More information

SAS Certification Handout #5: Ch /************ Ch. 13 ********************/ /* NOTE: Ch. 13 presents loads of functions; see pp.

SAS Certification Handout #5: Ch /************ Ch. 13 ********************/ /* NOTE: Ch. 13 presents loads of functions; see pp. SAS Certification Handout #5: Ch. 13-15 /************ Ch. 13 ********************/ /* NOTE: Ch. 13 presents loads of functions see pp. 452-455 */ /* MEAN function */ data a5 input X1-X5 Xmeans = mean(of

More information

SILENCING AN ALARM. When the alarm bell or siren is sounding, enter your user code or present your keyfob to your keypad.

SILENCING AN ALARM. When the alarm bell or siren is sounding, enter your user code or present your keyfob to your keypad. S Y S T E M U S E R G U I D E SILENCING AN ALARM When the alarm bell or siren is sounding, enter your user code or present your keyfob to your keypad. IS THIS A FALSE ALARM? YES NO displays. REAL ALARM

More information

Biostatistics 600 SAS Lab Supplement 1 Fall 2012

Biostatistics 600 SAS Lab Supplement 1 Fall 2012 Biostatistics 600 SAS Lab Supplement 1 Fall 2012 p 2. How to Enter Data in the Program Editor Window: Instream Data p 5. How to Create a SAS Data Set from Raw Data Files p 16. Using Dates in SAS 1 How

More information

Introduction to SAS Mike Zdeb ( , #1

Introduction to SAS Mike Zdeb ( , #1 Mike Zdeb (402-6479, msz03@albany.edu) #1 (1) INTRODUCTION Once, the acronym SAS actually did stand for Statistical Analysis System. Now, when you use the term SAS, you are referring to a collection of

More information

HWUTES186/01436n (10 pages) PROCESSOR & PERIPHERAL BOARD TESTING

HWUTES186/01436n (10 pages) PROCESSOR & PERIPHERAL BOARD TESTING 80186 PROCESSOR & PERIPHERAL BOARD TESTING SUBJECT: MILNOR Micro-Processor and Peripheral Board Testing Procedures Using 80186 Processor and Serial Display This procedure will allow testing of the 186

More information

Getting Your Data into SAS The Basics. Math 3210 Dr. Zeng Department of Mathematics California State University, Bakersfield

Getting Your Data into SAS The Basics. Math 3210 Dr. Zeng Department of Mathematics California State University, Bakersfield Getting Your Data into SAS The Basics Math 3210 Dr. Zeng Department of Mathematics California State University, Bakersfield Outline Getting data into SAS -Entering data directly into SAS -Creating SAS

More information

Chapter 1 The DATA Step

Chapter 1 The DATA Step Chapter 1 The DATA Step 1.1 Structure of SAS Programs...1-3 1.2 SAS Data Sets... 1-12 1.3 Creating a Permanent SAS Data Set... 1-18 1.4 Writing a SAS DATA Step... 1-24 1.5 Creating a DATA Step View...

More information

8088 PROCESSOR & PERIPHERAL BOARD TESTING

8088 PROCESSOR & PERIPHERAL BOARD TESTING HWUTEST88/01943n (10 pages) 8088 PROCESSOR & PERIPHERAL BOARD TESTING SUBJECT: MILNOR Micro-Processor and Peripheral Board Testing Procedures Using 8088 Processor and Parallel Display This procedure will

More information

Objectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy

Objectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy Reading SAS Data Sets and Creating Variables Objectives Create a SAS data set using another SAS data set as input. Create SAS variables. Use operators and SAS functions to manipulate data values. Control

More information

MATH 707-ST: Introduction to Statistical Computing with SAS and R. MID-TERM EXAM (Writing part) Fall, (Time allowed: TWO Hours)

MATH 707-ST: Introduction to Statistical Computing with SAS and R. MID-TERM EXAM (Writing part) Fall, (Time allowed: TWO Hours) MATH 707-ST: Introduction to Statistical Computing with SAS and R MID-TERM EXAM (Writing part) Fall, 2013 (Time allowed: TWO Hours) Highlight your answer clearly for each question. There is only one correct

More information

libname learn "C:\sas\STAT6250\Examples"; /*Identifies library of data*/

libname learn C:\sas\STAT6250\Examples; /*Identifies library of data*/ CHAPTER 7 libname learn "C:\sas\STAT6250\Examples"; /*Identifies library of data*/ /*Problem 7.2*/ proc print data=learn.hosp; where Subject eq 5 or Subject eq 100 or Subject eq 150 or Subject eq 200;

More information

The INPUT Statement: Where

The INPUT Statement: Where The INPUT Statement: Where It's @ Ronald Cody, Ed.D. Robert Wood Johnson Medical School Introduction One of the most powerful features of SAS software is the ability to read data in almost any form. For

More information

Operating & ProgrammingGuide

Operating & ProgrammingGuide LCD Keypad Operating & ProgrammingGuide Arrowhead Alarm Products Ltd VERSION 2.03 Proudly Designed and Manufactured in New Zealand 1 CONTENTS Page No. INTRODUCTION 3 Introduction to the LCD Keypad 3 KEYPAD

More information

DATA Step Debugger APPENDIX 3

DATA Step Debugger APPENDIX 3 1193 APPENDIX 3 DATA Step Debugger Introduction 1194 Definition: What is Debugging? 1194 Definition: The DATA Step Debugger 1194 Basic Usage 1195 How a Debugger Session Works 1195 Using the Windows 1195

More information

SAS Certification Handout #10: Adv. Prog. Ch. 5-8

SAS Certification Handout #10: Adv. Prog. Ch. 5-8 SAS Certification Handout #10: Adv. Prog. Ch. 5-8 /************ Ch. 5 ******************* /* First, make example data -- same as Handout #9 libname cert 'C:/jrstevens/Teaching/SAS_Cert/AdvNotes'; /* In

More information

Service Bulletin. (This bulletin and all other active bulletins are downloadable from our website at

Service Bulletin. (This bulletin and all other active bulletins are downloadable from our website at Bulletin 2003-17-ABDE Service Bulletin (This bulletin and all other active bulletins are downloadable from our website at www.frymaster.com/service.) Bulletin 2003-17-ABDE Page 1 of 5 Date: 01/30/2003

More information

BEYOND COLUMN INPUT: ADVANCED TECHNIQUES WITH THE INFILE AND INPUT STATEMENTS

BEYOND COLUMN INPUT: ADVANCED TECHNIQUES WITH THE INFILE AND INPUT STATEMENTS BEYOND COLUMN INPUT: ADVANCED TECHNIQUES WITH THE INFILE AND INPUT STATEMENTS Kathy McLeod, ARC Professional Services Group Nancy Mae Bonney, Federal Reserve Board ABSTRACT The < routine SASs programming

More information

The Programmer's Solution to the Import/Export Wizard

The Programmer's Solution to the Import/Export Wizard The Programmer's Solution to the Import/Export Wizard Lora D. Delwiche, University of California, Davis, CA Susan J. Slaughter, SAS Consultant, Davis, CA Abstract Do you like what the Import/Export Wizard

More information

Base and Advance SAS

Base and Advance SAS Base and Advance SAS BASE SAS INTRODUCTION An Overview of the SAS System SAS Tasks Output produced by the SAS System SAS Tools (SAS Program - Data step and Proc step) A sample SAS program Exploring SAS

More information

Intermediate SAS: Working with Data

Intermediate SAS: Working with Data Intermediate SAS: Working with Data OIT Technical Support Services 293-4444 oithelp@mail.wvu.edu oit.wvu.edu/training/classmat/sas/ Table of Contents Getting set up for the Intermediate SAS workshop:...

More information

Unit 5. Similar Triangles

Unit 5. Similar Triangles Unit 5 Similar Triangles Lesson: Similar Triangles Just as congruence introduced us to new notation, similarity will have its own set of notation. If ΔCAT is congruent to ΔMEW, we write CAT MEW. If two

More information

GEOMETRY (TENTATIVE SCHEDULE) WEEK 1. Abbreviations: LT = Learning Target, Std. = Standard GR = Geometry Review Worksheet (Mixed Math Review)

GEOMETRY (TENTATIVE SCHEDULE) WEEK 1. Abbreviations: LT = Learning Target, Std. = Standard GR = Geometry Review Worksheet (Mixed Math Review) WEEK 1 MON Jan. 30 Std. 9-A * Lesson 8-1A: Pythagorean Theorem * Practice: Problems 1-9 all on back of note sheet TUE Jan. 31 Std. 9-A&B * LT Quiz Review (Radical Expressions) * Lesson 8-1A: Pythagorean

More information

Writing Programs in SAS Data I/O in SAS

Writing Programs in SAS Data I/O in SAS Writing Programs in SAS Data I/O in SAS Statistics 135 Autumn 2005 Copyright c 2005 by Mark E. Irwin Writing SAS Programs Your SAS programs can be written in any text editor, though you will often want

More information

STAT:5400 Computing in Statistics. Data Preparation Using SAS

STAT:5400 Computing in Statistics. Data Preparation Using SAS 1 2 STAT:5400 Computing in Statistics Data Preparation Using SAS Lecture 19 Oct 19, 2016 Kate Cowles 374 SH, 335-0727 katecowles@uiowaedu Example: Acid rain deposition in Colorado The National Atmospheric

More information

Contents. About This Book...1

Contents. About This Book...1 Contents About This Book...1 Chapter 1: Basic Concepts...5 Overview...6 SAS Programs...7 SAS Libraries...13 Referencing SAS Files...15 SAS Data Sets...18 Variable Attributes...21 Summary...26 Practice...28

More information

Chapter 1 Front Panel

Chapter 1 Front Panel Front Panel Quick Reference Chapter 1 Front Panel Front Panel Quick Reference This section describes features common to both the rack versions of the K2500 (K2500R and K2500RS) as well as the keyboard

More information

Other Data Sources SAS can read data from a variety of sources:

Other Data Sources SAS can read data from a variety of sources: Other Data Sources SAS can read data from a variety of sources: Plain text files, including delimited and fixed-column files Spreadsheets, such as Excel Databases XML Others Text Files Text files of various

More information

Microsoft Excel 2013 Series and Custom Lists (Level 3)

Microsoft Excel 2013 Series and Custom Lists (Level 3) IT Training Microsoft Excel 2013 Series and Custom Lists (Level 3) Contents Introduction...1 Extending a Single Cell...1 Built-in Data Series...2 Extending Two Cells...2 Extending Multiple Cells...3 Linear

More information

Hidden in plain sight: my top ten underpublicized enhancements in SAS Versions 9.2 and 9.3

Hidden in plain sight: my top ten underpublicized enhancements in SAS Versions 9.2 and 9.3 Hidden in plain sight: my top ten underpublicized enhancements in SAS Versions 9.2 and 9.3 Bruce Gilsen, Federal Reserve Board, Washington, DC ABSTRACT SAS Versions 9.2 and 9.3 contain many interesting

More information

Using Dynamic Data Exchange

Using Dynamic Data Exchange 145 CHAPTER 8 Using Dynamic Data Exchange Overview of Dynamic Data Exchange 145 DDE Syntax within SAS 145 Referencing the DDE External File 146 Determining the DDE Triplet 146 Controlling Another Application

More information

Reading data in SAS and Descriptive Statistics

Reading data in SAS and Descriptive Statistics P8130 Recitation 1: Reading data in SAS and Descriptive Statistics Zilan Chai Sep. 18 th /20 th 2017 Outline Intro to SAS (windows, basic rules) Getting Data into SAS Descriptive Statistics SAS Windows

More information

User s Manual. Pan and Tilt Chimney Inspection Camera. Model No.: SD-1050I. Please read this manual carefully before using this product!

User s Manual. Pan and Tilt Chimney Inspection Camera. Model No.: SD-1050I. Please read this manual carefully before using this product! User s Manual _ Pan and Tilt Chimney Inspection Camera Model No.: SD-1050I Please read this manual carefully before using this product! 1 Welcome Thank you for choosing our Pan and Tilt Chimney Inspection

More information

Dissolution System Drivers Operation Manual Rev. D

Dissolution System Drivers Operation Manual Rev. D Dissolution System Drivers Operation Manual 81-200-807 Rev. D Hanson Research Corporation 9810 Variel Avenue Chatsworth, CA 91311 USA (800) 821-8165 (818) 882-7266 FAX (818) 882-9470 www.hansonresearch.com

More information

Formats and the Format Procedure

Formats and the Format Procedure Formats and the Format Procedure Assigning Formats for Display While labels are used to change how a variable name is displayed, formats are used to change how data values are displayed. Formats are assigned

More information

BatteryStats.com Page 1 of 9

BatteryStats.com Page 1 of 9 [localhost:~] weiher% date >> /Users/weiher/Documents/Terminal- Unix/BatteryStats.Dat [localhost:~] weiher% ioreg -l grep -i IOBatteryInfo >> /Users/weiher/Documents/Terminal-Unix/BatteryStats.Dat [localhost:~]

More information

LifeLine Series. User Guide Px-100 Lifeline Paging Control Panel

LifeLine Series. User Guide Px-100 Lifeline Paging Control Panel Manual LifeLine Series User Guide Px-100 Lifeline Paging Control Panel The operation and functions described in this manual are available from Software Version Px100-001-01 onwards. 1 INTRODUCTION 1.1

More information

Chapter 7 File Access. Chapter Table of Contents

Chapter 7 File Access. Chapter Table of Contents Chapter 7 File Access Chapter Table of Contents OVERVIEW...105 REFERRING TO AN EXTERNAL FILE...105 TypesofExternalFiles...106 READING FROM AN EXTERNAL FILE...107 UsingtheINFILEStatement...107 UsingtheINPUTStatement...108

More information

data Vote; /* Read a CSV file */ infile 'c:\users\yuen\documents\6250\homework\hw1\political.csv' dsd; input state $ Party $ Age; run;

data Vote; /* Read a CSV file */ infile 'c:\users\yuen\documents\6250\homework\hw1\political.csv' dsd; input state $ Party $ Age; run; Chapter 3 2. data Vote; /* Read a CSV file */ infile 'c:\users\yuen\documents\6250\homework\hw1\political.csv' dsd; input state $ Party $ Age; title "Listing of Vote data set"; /* compute frequencies for

More information

Get Ready. Solving Equations 1. Solve each equation. a) 4x + 3 = 11 b) 8y 5 = 6y + 7

Get Ready. Solving Equations 1. Solve each equation. a) 4x + 3 = 11 b) 8y 5 = 6y + 7 Get Ready BLM... Solving Equations. Solve each equation. a) 4x + = 8y 5 = 6y + 7 c) z+ = z+ 5 d) d = 5 5 4. Write each equation in the form y = mx + b. a) x y + = 0 5x + y 7 = 0 c) x + 6y 8 = 0 d) 5 0

More information

An Everyday Guide to Version 7 of the SAS System

An Everyday Guide to Version 7 of the SAS System An Everyday Guide to Version 7 of the SAS System Susan J. Slaughter, Independent Consultant, Davis, CA Lora D. Delwiche, IT/ANSA, University of California, Davis, CA What is an everyday guide? Version

More information

Butterflies, Pinwheels, and Wallpaper

Butterflies, Pinwheels, and Wallpaper Butterflies, Pinwheels, and Wallpaper Day Topic Homework IXL Grade 1 Inv 1.1 Inv 1/ACE # 1-6 2 Inv 1.2 Inv 1/ACE # 19-20 3 Inv 1.3 Inv 1/ACE # 8-12 (all part a only!) 4 Inv 1.4 Inv 1/ACE # 14-17, 30-34,

More information

22S:166. Checking Values of Numeric Variables

22S:166. Checking Values of Numeric Variables 22S:1 Computing in Statistics Lecture 24 Nov. 2, 2016 1 Checking Values of Numeric Variables range checks when you know what the range of possible values is for a given quantitative variable internal consistency

More information

STAT:5400 Computing in Statistics. Other software packages. Microsoft Excel spreadsheet very convenient for entering data in flatfile

STAT:5400 Computing in Statistics. Other software packages. Microsoft Excel spreadsheet very convenient for entering data in flatfile STAT:5400 Computing in Statistics Other Software Packages Proc import A bit on SAS macro language Lecture 26 ov 2, 2016 Kate Cowles 374 SH, 335-0727 kate-cowles@uiowaedu Other software packages Microsoft

More information

DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017

DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017 DSCI 325: Handout 9 Sorting and Options for Printing Data in SAS Spring 2017 There are a handful of statements (TITLE, FOOTNOTE, WHERE, BY, etc.) that can be used in a wide variety of procedures. For example,

More information

TerraStation II v7 Training

TerraStation II v7 Training WORKED EXAMPLE Loading and using Core Analysis Data Core Analysis Data is frequently not available at exact well increments. In order to retain the exact depth at which this data is sampled, it needs to

More information

TPNA-1000 Triple Play Network Analyzer

TPNA-1000 Triple Play Network Analyzer TPNA-1000 Triple Play Network Analyzer Section I: The Basics 1.1 1.2 THIS PAGE LEFT INTENTIONALLY BLANK Chapter 1 1. General Information Helpful Website The following website contains general information

More information

Butterflies, Pinwheels, and Wallpaper

Butterflies, Pinwheels, and Wallpaper Butterflies, Pinwheels, and Wallpaper Day Topic Homework Grade 1 Intro Day start work on notes, vocab, and ACE questions 2 Inv 1/ACE # 1-6, 8-12, 14-17, 19-20, 30-34, 36a, 37a due by Friday 1/9 at 3:15

More information

REFERENCE SECTION Chapter Chapter Chapter Chapter 237 Chapter Chapter Chapter 7

REFERENCE SECTION Chapter Chapter Chapter Chapter 237 Chapter Chapter Chapter 7 REFERENCE SECTION Chapter 1 SAS Enterprise Guide Basics 159 Chapter 2 Bringing Data into a Project 191 Chapter 3 Changing the Way Data Values Are Displayed 225 Chapter 4 Modifying Data Using the Query

More information

Make Your Life a Little Easier: A Collection of SAS Macro Utilities. Pete Lund, Northwest Crime and Social Research, Olympia, WA

Make Your Life a Little Easier: A Collection of SAS Macro Utilities. Pete Lund, Northwest Crime and Social Research, Olympia, WA Make Your Life a Little Easier: A Collection of SAS Macro Utilities Pete Lund, Northwest Crime and Social Research, Olympia, WA ABSTRACT SAS Macros are used in a variety of ways: to automate the generation

More information

eurösec CPX Control Panel User Instructions

eurösec CPX Control Panel User Instructions eurösec CPX Control Panel User Instructions eurösec CPX User Manual Contents User Information... 2 Introduction... 3 User Code Types... 3 Setting The System... 4 Setting & Unsetting via Keyswitch... 4

More information

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language 1 History C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC

More information

What if Analysis, Charting, and Working with Large Worksheets. Chapter 3

What if Analysis, Charting, and Working with Large Worksheets. Chapter 3 What if Analysis, Charting, and Working with Large Worksheets Chapter 3 What we will cover Rotating Text Using the fill handle to create a series of month names Copying and pasting What we will cover Inserting,

More information

Overview of Data Management Tasks (command file=datamgt.sas)

Overview of Data Management Tasks (command file=datamgt.sas) Overview of Data Management Tasks (command file=datamgt.sas) Create the March data set: To create the March data set, you can read it from the MARCH.DAT raw data file, using a data step, as shown below.

More information

Chapter 3 User Interface Basics

Chapter 3 User Interface Basics Chapter 3 User Interface Basics Mode Buttons Navigation The Display Chapter 3 will show you how to get around the front panel of your K2500. Your interactions can be divided into three primary operations:

More information

SAS 101. Based on Learning SAS by Example: A Programmer s Guide Chapters 9, 11 & 12. By Tasha Chapman, Oregon Health Authority

SAS 101. Based on Learning SAS by Example: A Programmer s Guide Chapters 9, 11 & 12. By Tasha Chapman, Oregon Health Authority SAS 101 Based on Learning SAS by Example: A Programmer s Guide Chapters 9, 11 & 12 By Tasha Chapman, Oregon Health Authority Topics covered SAS dates Date functions Numeric functions Character functions

More information

NFX MARKET DATA FEED INTERFACE SPECIFICATIONS. NFX Market Data Feed

NFX MARKET DATA FEED INTERFACE SPECIFICATIONS. NFX Market Data Feed NFX Market Data Feed Table of Contents 1 INTRODUCTION... 3 1.1 PURPOSE... 3 1.2 ARCHITECTURE... 3 2 SESSION CHARACTERISTICS... 4 2.1 REAL-TIME PRODUCTION DATA... 4 2.2 PRE-LAUNCH TEST DATA... 4 2.3 TRANSMISSION

More information

WRITE SAS CODE TO GENERATE ANOTHER SAS PROGRAM

WRITE SAS CODE TO GENERATE ANOTHER SAS PROGRAM WRITE SAS CODE TO GENERATE ANOTHER SAS PROGRAM A DYNAMIC WAY TO GET YOUR DATA INTO THE SAS SYSTEM Linda Gau, ProUnlimited, South San Francisco, CA ABSTRACT In this paper we introduce a dynamic way to create

More information

Villanova University CSC 2400: Computer Systems I

Villanova University CSC 2400: Computer Systems I Villanova University CSC 2400: Computer Systems I A "De-Comment" Program Purpose The purpose of this assignment is to help you learn or review (1) the fundamentals of the C programming language, (2) the

More information

Mathematics Success Grade 8

Mathematics Success Grade 8 Mathematics Success Grade 8 S19 Warm Up Directions: Answer Questions 1 and 2 about ratios and proportionality. 1. Determine whether the ratios 9 and 8 12 your answer. form a proportion and explain 2. Determine

More information

The Art of Defensive Programming: Coping with Unseen Data

The Art of Defensive Programming: Coping with Unseen Data INTRODUCTION Paper 1791-2018 The Art of Defensive Programming: Coping with Unseen Data Philip R Holland, Holland Numerics Limited, United Kingdom This paper discusses how you cope with the following data

More information

SAS PROGRAMMING AND APPLICATIONS (STAT 5110/6110): FALL 2015 Module 2

SAS PROGRAMMING AND APPLICATIONS (STAT 5110/6110): FALL 2015 Module 2 SAS PROGRAMMING AND APPLICATIONS (STAT 5110/6110): FALL 2015 Department of MathemaGcs and StaGsGcs Phone: 4-3620 Office: Parker 364- A E- mail: carpedm@auburn.edu Web: hup://www.auburn.edu/~carpedm/stat6110

More information

Geometry Transformations

Geometry Transformations Geometry Transformations NAME Period 1 Transformations Notes Transformation: Maps an, called a, onto a final, called an. Reflection: a transformation representing a of a figure Reflecting over the x-axis,

More information

SUGI 29 Data Warehousing, Management and Quality

SUGI 29 Data Warehousing, Management and Quality Building a Purchasing Data Warehouse for SRM from Disparate Procurement Systems Zeph Stemle, Qualex Consulting Services, Inc., Union, KY ABSTRACT SAS Supplier Relationship Management (SRM) solution offers

More information

Introduction. The Path Advantage

Introduction. The Path Advantage Table Of Contents Introduction... 1 The Path Advantage... 1 Communication Paths... 2 SCS-1R... 2 SCS-VR... 2 Path Groups... 3 Adaptive Technology... 3 Advanced Communication Programming.3 Understanding

More information

CIMA Asia. Interactive Timetable Live Online

CIMA Asia. Interactive Timetable Live Online CIMA Asia Interactive Timetable 2018 Live Online Information version 8 last updated 04/05/18 Please note information and dates are subject to change. Premium Learning Partner 2018 CIMA Cert BA Course Overview

More information

Contents. Overview How SAS processes programs Compilation phase Execution phase Debugging a DATA step Testing your programs

Contents. Overview How SAS processes programs Compilation phase Execution phase Debugging a DATA step Testing your programs SAS Data Step Contents Overview How SAS processes programs Compilation phase Execution phase Debugging a DATA step Testing your programs 2 Overview Introduction This section teaches you what happens "behind

More information

Write SAS Code to Generate Another SAS Program A Dynamic Way to Get Your Data into SAS

Write SAS Code to Generate Another SAS Program A Dynamic Way to Get Your Data into SAS Paper 175-29 Write SAS Code to Generate Another SAS Program A Dynamic Way to Get Your Data into SAS Linda Gau, Pro Unlimited @ Genentech, Inc., South San Francisco, CA ABSTRACT In this paper we introduce

More information

ssh tap sas913 sas

ssh tap sas913 sas Fall 2010, STAT 430 SAS Examples SAS9 ===================== ssh abc@glue.umd.edu tap sas913 sas https://www.statlab.umd.edu/sasdoc/sashtml/onldoc.htm a. Reading external files using INFILE and INPUT (Ch

More information

SAS Certification Handout #9: Adv. Prog. Ch. 3-4

SAS Certification Handout #9: Adv. Prog. Ch. 3-4 SAS Certification Handout #9: Adv. Prog. Ch. 3-4 /************ Ch. 3 ********************/ /* First, make example data -- similar to Handout #8 */ libname cert 'C:/jrstevens/Teaching/SAS_Cert/AdvNotes';

More information

Perl Regular Expressions. Perl Patterns. Character Class Shortcuts. Examples of Perl Patterns

Perl Regular Expressions. Perl Patterns. Character Class Shortcuts. Examples of Perl Patterns Perl Regular Expressions Unlike most programming languages, Perl has builtin support for matching strings using regular expressions called patterns, which are similar to the regular expressions used in

More information

Topic : Geometric Constructions- Congruence - Worksheet 1

Topic : Geometric Constructions- Congruence - Worksheet 1 Topic : Geometric Constructions- Congruence - Worksheet 1 triangle D'E'F'.If EF is represented by 4x-40 and E'F' is represented by 3x-15,find Polygon STUV is congruent to polygon S'T'U'V'.If the value

More information

INFORMATION TECHNOLOGY SPREADSHEETS. Part 1

INFORMATION TECHNOLOGY SPREADSHEETS. Part 1 INFORMATION TECHNOLOGY SPREADSHEETS Part 1 Page: 1 Created by John Martin Exercise Built-In Lists 1. Start Excel Spreadsheet 2. In cell B1 enter Mon 3. In cell C1 enter Tue 4. Select cell C1 5. At the

More information

Conditional Formatting

Conditional Formatting Microsoft Excel 2013: Part 5 Conditional Formatting, Viewing, Sorting, Filtering Data, Tables and Creating Custom Lists Conditional Formatting This command can give you a visual analysis of your raw data

More information

EXST SAS Lab Lab #6: More DATA STEP tasks

EXST SAS Lab Lab #6: More DATA STEP tasks EXST SAS Lab Lab #6: More DATA STEP tasks Objectives 1. Working from an current folder 2. Naming the HTML output data file 3. Dealing with multiple observations on an input line 4. Creating two SAS work

More information

Visual Voic Guide

Visual Voic Guide Visual Voicemail Guide Aastra 6739i Schmooze Com Inc. 6739i L1 John Doe Thu Feb 23 2:25pm Park Intercom DND CallFwd John Doe Ext. 4009 Day-Night ConfRooms Follow-Me Status: Not Set MagicButton Presence

More information

Use That SAP to Write Your Code Sandra Minjoe, Genentech, Inc., South San Francisco, CA

Use That SAP to Write Your Code Sandra Minjoe, Genentech, Inc., South San Francisco, CA Paper DM09 Use That SAP to Write Your Code Sandra Minjoe, Genentech, Inc., South San Francisco, CA ABSTRACT In this electronic age we live in, we usually receive the detailed specifications from our biostatistician

More information

Easy Come, Easy Go Interactions between the DATA Step and External Files

Easy Come, Easy Go Interactions between the DATA Step and External Files Easy Come, Easy Go Interactions between the DATA Step and Click to add text Andrew T. Kuligowski, HSN For the good folks in Toronto June, 2015 Interactions Introduction Introduction Defining the external

More information

GEOMETRY (TENTATIVE SCHEDULE) WEEK 1. Abbreviations: LT = Learning Target, Std. = Standard GR = Geometry Review Worksheet (Mixed Math Review)

GEOMETRY (TENTATIVE SCHEDULE) WEEK 1. Abbreviations: LT = Learning Target, Std. = Standard GR = Geometry Review Worksheet (Mixed Math Review) (TENTATIVE SCHEDULE) WEEK 1 - MON Jan. 30 Std. 9-A * Lesson 8-1A: Pythagorean Theorem * Practice: Problems 1-9 all on back of note sheet TUE Jan. 31 Std. 9-AB * LT Quiz Review (Radical Expressions) * Lesson

More information

Welcome to Top 10 SAS Functions

Welcome to Top 10 SAS Functions Welcome to Top 10 SAS Functions Goal and Agenda By the end of this meeting, you will understand 10 key SAS functions purpose, value and features. What are SAS functions? Why use them? Use Case Manipulating

More information

Communication Device. Wireless Setup Instructions

Communication Device. Wireless Setup Instructions Communication Device Wireless Setup Instructions Introduction The Communication Device can be setup for wireless usage, enabling you to move your meter to any location that is within the range of a wireless

More information

How to Use Adhoc Parameters in Actuate Reports

How to Use Adhoc Parameters in Actuate Reports How to Use Adhoc Parameters in Actuate Reports By Chris Geiss chris_geiss@yahoo.com http://www.chrisgeiss.com How to Use Adhoc Parameters in Actuate Reports By Chris Geiss Revised 3/31/2002 This document

More information

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology LSN 4 Boolean Algebra & Logic Simplification Department of Engineering Technology LSN 4 Key Terms Variable: a symbol used to represent a logic quantity Compliment: the inverse of a variable Literal: a

More information

e. That's accomplished with:

e. That's accomplished with: Make Your Life a Little Easier: A Collection of SAs Macro Utilities Pete Lund, Northwest Crime and Social Research, Olympia, WA ABSTRACT SAs Macros are used in a variety of ways: to automate the generation

More information

POSITIVE PAY FILE LAYOUT FORMATS

POSITIVE PAY FILE LAYOUT FORMATS POSITIVE PAY FILE LAYOUT FORMATS The following tables provide the field name, maximum or exact length, and format/description for the data elements in each positive pay file layout. Check with your bank

More information

IT 433 Final Exam. June 9, 2014

IT 433 Final Exam. June 9, 2014 Page 1 of 10 IT 433 Final Exam June 9, 2014 Part A: Multiple Choice Questions about SAS. Circle the most correct answer for each question. You may give an optional reason for each answer; if the answer

More information

Polygons, Congruence, Similarity Long-Term Memory Review Grade 8 Review 1

Polygons, Congruence, Similarity Long-Term Memory Review Grade 8 Review 1 Review 1 1. In the diagram below, XYZ is congruent to CDE XYZ CDE. Y D E X Z C Complete the following statements: a) C b) XZ c) CDE d) YZ e) Z f) DC 2. In the diagram below, ABC is similar to DEF ABC DEF.

More information

1. If ABC DEF, then A? and BC?. D. EF 2. What is the distance between (3, 4) and ( 1, 5)? 17

1. If ABC DEF, then A? and BC?. D. EF 2. What is the distance between (3, 4) and ( 1, 5)? 17 Warm Up 1. If ABC DEF, then A? and BC?. D EF 2. What is the distance between (3, 4) and ( 1, 5)? 17 3. If 1 2, why is a b? Converse of Alternate Interior Angles Theorem 4. List methods used to prove two

More information

1. Managing Information in Table

1. Managing Information in Table 1. Managing Information in Table Spreadsheets are great for making lists (such as phone lists, client lists). The researchers discovered that not only was list management the number one spreadsheet activity,

More information