DSCI 325: Handout 2 Getting Data into SAS Spring 2017

Size: px
Start display at page:

Download "DSCI 325: Handout 2 Getting Data into SAS Spring 2017"

Transcription

1 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 electronic databases. SAS is one of the most popular and, more importantly, efficient statistical software packages for the management of data. In this handout, we will explore methods for getting data into SAS. SOME RULES FOR SAS DATA SETS Data Types There are just two data types in SAS, numeric and character. o o Numeric: these variables take on values that are numbers and thus can be manipulated as such. Character: these variables can be up to 32,767 characters long and may contain numbers, letters, and some special characters (e.g., $ or!). Realize that at times it might be appropriate to treat numbers as characters, and SAS allows us to do this. For example, a ZIP code most likely should be treated as a character and not a numerical value. Missing Data o o A missing observation for a numeric variable is identified with a period. A missing observation for a character variable is identified with a blank. Rules for SAS Variable Names o o o o Variable names must contain between 1 and 32 characters Variable names must start with a letter or underscore Variable names can contain only letters, numbers, and underscores. Special characters such as %,!, etc., are not allowed in variable names; blanks also cannot appear in SAS variable names. SAS variable names are not case-sensitive. 1

2 USING THE SNIPPETS IMPORT TOOL You can use the Snippets Import Tool to get data into the SAS Studio environment when running SAS University Edition. Suppose you want to read in the file CarAccidents.csv. First, save the desired data set in your shared folder. Select Snippets > Data > Import CSV file. The following code is added to your CODE tab. /** FOR CSV Files uploaded from Windows **/ FILENAME CSV "<Your CSV File>" TERMSTR=CRLF; /** FOR CSV Files uploaded from Unix/MacOS **/ FILENAME CSV "<Your CSV File>" TERMSTR=LF; /** Import the CSV file. **/ PROC IMPORT DATAFILE=CSV OUT=WORK.MYCSV DBMS=CSV REPLACE; /** Print the results. **/ PROC PRINT DATA=WORK.MYCSV; /** Unassign the file reference. **/ FILENAME CSV; 2

3 Now, you must customize the filenames in this code. /** FOR CSV Files uploaded from Windows **/ FILENAME CSV "/folders/myfolders/caraccidents.csv" TERMSTR=CRLF; /** Import the CSV file. **/ PROC IMPORT DATAFILE=CSV OUT=WORK.CarAccidents DBMS=CSV REPLACE; /** Print the results. **/ PROC PRINT DATA=WORK.CarAccidents; /** Unassign the file reference. **/ FILENAME CSV; Note: The OUT statement is used to specify where to save the SAS data table in the format Library.Filename. In this example, the data table is named CarAccidents and is saved to the Work library (a temporary location). MORE ON SAS DATA SETS We have now created a SAS data set. This is technically a file containing two parts: a descriptor portion and a data portion. The following programming statements can be used to view the descriptor portion. PROC CONTENTS DATA = CarAccidents; The descriptor portion contains information about the data set: The programming statements below can be used to print the data portion of the SAS data set. Note: using the WHERE ID <=10 statement tells SAS to print only the first 10 observations. PROC PRINT DATA=CarAccidents; WHERE ID <= 10; 3

4 The data set is comprised of variables and observations. The variables (in columns) are collections of data values that describe a particular characteristic of what is being measured. The observations (in rows) are collections of data values that belong to the particular object or subject (in this case person) being measured. MORE ON SAS VARIABLES The descriptor portion of a SAS data set also stores the following attributes of each variable: The variable s name The variable s type The variable s length The variable s format The variable s informat The variable s label 4

5 READING RAW DATA INTO SAS You can also provide SAS with internal raw data by typing data directly into your SAS program with a DATA step. For example, let s enter a portion of the NC_Birth data. Note that the INPUT line is used to identify variable names (the $ is used to identify character variables). The DATALINES statement must be the last statement in the data step, and all lines following this statement should contain data. Finally, note that information about the father s minority status and age are not known for the 4 th observation, so a period (.) is used to identify missing values. DATA NC_Birth; INPUT FatherMinority$ FatherAge MotherMinority$ MotherAge Apgar1 Apgar5; DATALINES; Nonwhites 50 White White 19 White White 37 White Nonwhite Nonwhite 39 Nonwhite White 20 Nonwhite White 30 White White 28 White White 22 White Nonwhite 25 White ; PROC PRINT DATA=NC_BIRTH; The PROC PRINT step produces the following output. 5

6 SAS can work directly with external raw data, as well. In these cases, the INFILE command is used within a DATA step to specify the location of the external raw data. For example, the data used in the previous example also is provided in a *.dat file named DataStep_NCBirth.dat. The following code can be used to read in this external data in raw format. DATA NC_Birth; INFILE '/folders/myfolders/datastep_ncbirth.dat'; INPUT FatherMinority$ FatherAge MotherMinority$ MotherAge Apgar1 Apgar5; PROC PRINT DATA=NC_Birth; At times, it may be necessary to specify the length of a line when reading in external data. You can do this with the LRECL= option (which stands for logical record length) in the INFILE statement. If you use this option, make sure that you specify a record length at least as long as the longest record in your data file; otherwise, you may encounter problems. For example, let s take a close look at what SAS does if we specify 20 as the record length in the above program. DATA NC_Birth; INFILE '/folders/myfolders/datastep_ncbirth.dat'lrecl=20; INPUT FatherMinority$ FatherAge MotherMinority$ MotherAge Apgar1 Apgar5; PROC PRINT DATA=NC_Birth; 6

7 A print-out of the ENTIRE dataset read in by SAS with this program is shown below: Question: What did SAS do to you? Answer: Look at your log file! First, consider line 1 of our data set. SAS truncates information after 20 spaces and moves to the next line because SAS is trying to find the values for Apgar1 and Apgar5. You told SAS to look for six variables in the INPUT statement and it s trying to find valid information for all six variables! NOTE: Invalid data for Apgar1 in line RULE: White 19 White 18 8 FatherMinority=Nonwhite FatherAge=50 MotherMinority=White MotherAge=2 Apgar1=. Apgar5=19 _ERROR_=1 _N_=1 NOTE: Invalid data for MotherAge in line NOTE: Invalid data for Apgar5 in line White 20 Nonwhite 19 FatherMinority=Nonwhite FatherAge=39 MotherMinority=Nonwhite MotherAge=. Apgar1=20 Apgar5=. _ERROR_=1 _N_=3 NOTE: Invalid data for Apgar5 in line White 28 White 29 4 FatherMinority=White FatherAge=30 MotherMinority=White MotherAge=27 Apgar1=9 Apgar5=. _ERROR_=1 _N_=4 NOTE: Invalid data for Apgar5 in line Nonwhite 25 White 25 FatherMinority=White FatherAge=22 MotherMinority=White MotherAge=19 Apgar1=9 Apgar5=. _ERROR_=1 _N_=5 7

8 As mentioned above, SAS will continue to search for variables (even across multiple lines) until it finds valid information for each variable. Consider our dataset again in which observation 5, 6, and 10 have information on multiple lines. The same code as used above will work here, as well, since SAS automatically continues its search for information across one or more lines. DATA NC_Birth; INFILE '/folders/myfolders/datastep_ncbirth_multiline.txt'; INPUT FatherMinority$ FatherAge MotherMinority$ MotherAge Apgar1 Apgar5; PROC PRINT DATA=NC_BIRTH; 8

9 SPECIFYING COLUMNS WHEN READING RAW DATA INTO SAS We can specify exactly which columns should be used for the creation of specific variables. For example, consider the CourseData.txt file. The following code can be used to read in this data. DATA CourseData; INFILE '/folders/myfolders/coursedata.txt'; INPUT Subject $ 1-4 Number 5-7 Students 8-9; PROC PRINT DATA=CourseData; Note that SAS missed the value of Students for row 98 for some reason. External raw data Data read into SAS To fix this, ensure that numeric variables are right justified in the raw external file. 9

10 READING IN NONSTANDARD DATA At times our datasets may contain variables other than strictly numeric or character strings. For example, the following dataset contains a date. Note: The variables in the above dataset remain in nice straight columns. We will take advantage of this when reading in the data. The following code can be used to read in this dataset. DATA faculty; INFILE '/folders/myfolders/faculty.dat'; INPUT Name $ Age Discipline $1. +1 Date MMDDYY10. (Rating1 Rating2) (4.1); PROC PRINT Data=faculty; Note the use of informats after the variable names in the INPUT statement. Discuss the purpose of each of the following components of the INPUT statement: Name $ Age 2. Discipline $1. Date MMDDYY10. (Rating1 Rating2) (4.1) 10

11 A print-out of this dataset is given here. Note: The dates here are expressed as the number of days since January 1, This default setting can be overridden (when printing) using a FORMAT statement in the PROC PRINT procedure. We ll discuss this in detail in a future handout. Using a FORMAT statement to print actual dates: PROC PRINT Data=faculty; FORMAT Date MMDDYY10.; 11

12 MIXING INPUT STYLES AND DEALING WITH MESSY RAW DATA Consider the following dataset which has a mixture of input styles. The dataset contains the following information for each park: Name, State(s), Year Park was established, and Acreage. Some variables are in nice straight columns, but States and Year are not. To read in this data set, start by identifying the column location of the variables that are properly aligned. Then, use the following code: DATA NationalParks; INFILE '/folders/myfolders/nationalparks.txt' ; INPUT Name $ 1-22 State $ Acreage COMMA9.; PROC PRINT DATA=NationalParks; A print-out of the correct dataset in SAS is shown below: 12

13 Questions: 1. Change the input line as follows: INPUT Name $ State $ Acreage COMMA9.; What impact does this have on the result? 2. Change the input line as follows: INPUT Name $ 1-22 State $ Year Acreage COMMA9.; What impact does this have on the result? What did SAS do here? Discuss each of the following components of the INPUT Statement. Name $ 1-22 State $ Acreage COMMA9. 13

14 Comments: 1. If a tab is used in the creation of the raw data file, the data will not read in correctly (verify this on your own). Note that SAS treats a tab differently than a space. 2. When reading in messy data, symbol can be used to move across a line to find specific characters, as well. Consider a typical log file from a website. Suppose we want to read in the Date and Filename. Consider the following program and output: DATA Logfile; INFILE '/folders/myfolders/logfile.txt'; Date File :$53.; PROC PRINT DATA=Logfile; 14

15 Questions: 1. Change the INPUT line to read: Date File $; What is the effect of using this input line? Discuss. 2. Change the INPUT line to read: Date File $52.; What is the effect of using this input line? Discuss. 3. Change the INPUT line to read: Date File :$100.; What is the effect of using this input line? Discuss. 4. What is the purpose of the colon in our original input line? Discuss. 5. Verify whether or not SAS picks up the space after GET but before the / when reading in the file name. 15

16 OBSERVATIONS ON MULTIPLE LINES AND MULTIPLE OBSERVATIONS PER ROW Consider the following dataset that contains information about an observation across multiple rows. The first line of each observation contains the variables Father Minority Status and Father s Age. The second line contains the variables Mother Minority and Mother s Age, and the third line contains the Apgar Scores from 1 minute and 5 minutes. The following code can be used to read in this data. DATA NC_Birth; INFILE '/folders/myfolders/datastep_ncbirth_multiline_2.txt'; INPUT FMinority $ FAge / MMinority $ MAge #3 Apgar1 Apgar5; PROC PRINT DATA=NC_Birth; 16

17 Tasks: 1. Rewrite the code above to read in only the following variables: FMinority, FAge, Apgar1, and Apgar5. Paste the code here. 2. Rewrite the code above to read in only FMinority and Apgar1, Apgar5. Paste your code here. 3. Rewrite the code above to read in only FMinority, Mage, Apgar1. Paste your code here. 17

18 Another issue that may arise is that multiple observations may be present in each row. In the following setup, each row contains two observations instead of one. Once SAS reads in information for each variable, it automatically jumps to the next line. In the case above, we want to force SAS to continue reading information in the first line, since data from the second observations is also present in the first line. This can be done using in the INPUT line. DATA NC_Birth; INFILE '/folders/myfolders/datastep_ncbirth_multiobs.txt'; INPUT FMinority $ FAge MMinority $ MAge Apgar1 With the use of symbols, all observations could technically be contained on the first line. SAS will continue reading in variables from the first line until it reaches the end of this line. 18

19 READING PART OF A DATA FILE Consider once again the subset of the NCBirth dataset that is given here. We used the following program to read in the entire dataset: DATA NC_Birth; INFILE '/folders/myfolders/datastep_ncbirth.dat'; INPUT FMinority $ FAge MMinority $ MAge Apar1 Apgar5; The SAS print-out of the data is shown below. 19

20 Now, suppose the goal is to read in only information for which the Father Minority = Nonwhite. You could modify the code as follows: DATA NC_Birth; INFILE '/folders/myfolders/datastep_ncbirth.dat'; INPUT FMinority $ FAge MMinority $ MAge Apar1 Apgar5; IF FMinority = 'White' then DELETE; The SAS print-out of the data is shown below: Comment: The placement of the IF statement above requires all of the information for that observation get read in and then we immediately delete this information. This is inefficient. The following code instead reads in only the Father Minority status, then moves to the IF statement symbol does this). If the FMinority variable is deleted, SAS moves on to the next observation (i.e., it returns to the beginning of the data step). If FMinority exists for that observation, SAS moves on to the second INPUT statement and continues to read in information for that observation. DATA NC_Birth; INFILE '/folders/myfolders/datastep_ncbirth.dat'; INPUT FMinority IF FMinority = 'White' then DELETE; INPUT FAge MMinority $ MAge Apgar1 Apgar5; Task: Write code to read in only the observations for which FMinority = Nonwhite and MMinority = Nonwhite. Your code should require SAS to read in a minimum amount of information from each observation. Test your code in SAS and make sure it works. 20

21 SPECIFYING OPTIONS IN THE INFILE STATEMENT The following data set is similar to one with which we ve been working; however, note that here the first row contains variable names. The code we ve been using to read in this data will not work. DATA NC_Birth; INFILE '/folders/myfolders/ncbirth_with_names.dat' ; INPUT FMinority $ FAge MMinority $ MAge Apar1 Apgar5; 21

22 The FIRSTOBS option in the INFILE statement can be used to tell SAS to skip over the first row when reading in the data file. DATA NC_Birth; INFILE '/folders/myfolders/ncbirth_with_names.dat' FIRSTOBS=2; INPUT FMinority $ FAge MMinority $ MAge Apar1 Apgar5; Likewise, the OBS option can be used to STOP reading from a data file at some point. For example, the following would read in only the 2 nd and 3 rd line of the data file. DATA NC_Birth; INFILE ' /folders/myfolders/ncbirth_with_names.dat' FIRSTOBS=2 OBS=3; INPUT FMinority $ FAge MMinority $ MAge Apar1 Apgar5; On another note, observations that do not contain the same amount of information can be problematic, especially if this missing information is at the end of a data line. Suppose the data file had been constructed as follows. (Notice that putting a. in for the missing information would prevent any problems.) Our usual SAS code to read in this data is shown below. DATA NC_Birth; INFILE '/folders/myfolders/datastep_ncbirth_missing.dat'; INPUT FMinority $ FAge MMinority $ MAge Apar1 Apgar5; 22

23 These statements produce the following output: Note that SAS reached the end of the first data line before it had assigned values to all variables in the INPUT statement. By default, SAS will go to the next line to try to complete the first record. The MISSOVER option in the INFILE statement can be used to overcome this issue. This tells SAS to simply assign missing values to any remaining variables once it reaches the end of a data line. DATA NC_Birth; INFILE ' /folders/myfolders/datastep_ncbirth_missing.dat' MISSOVER; INPUT FMinority $ FAge MMinority $ MAge Apar1 Apgar5; PROC PRINT; 23

24 READING IN DELIMITED FILES Consider again the Car Accidents data set. Note that this is a comma-delimited file which has variable names in the first row. The following SAS code can be used to read in this data file. DATA Car_Accidents; INFILE '/folders/myfolders/caraccidents.csv' DLM=',' FIRSTOBS=2; INPUT ID Gender $ SeatBelt$ Age $ CellPhone $ Usage $; The output for the first 10 observations is shown below. 24

25 Next, consider reading in a tab-delimited file. SAS uses standard ASCII codes for characters. For example, 09 is the ASCII equivalent of a tab, and the notation 09 X in the programming statements below refers to a hexadecimal 09 character. (To see more ASCII codes, you can visit The following code can be used to read the tab-delimited file. DATA Car_Accidents; INFILE '/folders/myfolders/caraccidents.txt' DLM='09'X FIRSTOBS=2; INPUT ID Gender $ SeatBelt$ Age $ CellPhone $ Usage $; 25

26 USING THE IMPORT PROCEDURE The PROC IMPORT procedure was introduced earlier in this handout when discussing the Import Wizard. At this point, we can better understand how the IMPORT procedure works. PROC IMPORT OUT= WORK.CarAccidents DATAFILE="/folders/myfolders/CarAccidents.csv" DBMS=CSV REPLACE; GETNAMES=YES; DATAROW=2; Note that lines 1, 2, and 3 are OPTIONS under the PROC IMPORT statement. Identify the purpose of each line: Code Purpose OUT= WORK.CarAccidents DATAFILE= "/folders/myfolders/caraccidents.csv" DBMS=CSV REPLACE; GETNAMES=YES; DATAROW=2; Reading data files from other formats can easily be done (e.g. JMP, SPSS, Excel, etc.). The import options vary between different file formats. For example, when Excel files are imported, information about which sheet the data is contained in must be specified. 26

27 USING LIBRARIES IN SAS All SAS data sets are stored in a folder or directory known as a SAS library. You can view the active libraries by clicking on the Libraries tab. The Work library is a temporary storage location for SAS data sets (and it is also the default library). Data sets in this library will be deleted once you end the SAS session. You can also create a new permanent library in SAS by clicking on the New Library icon. In the New Library window, enter the name of the library you want to create and the path to where you want your data to be stored. Keep in mind that SAS places the following restrictions on library names: Names can be at most 8 characters Names can contain only letters, numbers, and underscores When you are using the SAS University Edition, any libraries that you create must be assigned to a shared folder. You access your shared folder with this pathname: /folders/myfolders/. Finally, be sure to check the Re-create this library at startup box so that you don t have to define your library reference each time you start SAS. 27

28 You can also use the LIBNAME statement to create a new library. For example, the following statements would have produced the same library that was created above using the New Library window. LIBNAME Hooks '/folders/myfolders/'; Creating Permanent SAS Data sets All SAS data sets have a two level name such as WORK.Car_Accidents. To create a permanent data set in SAS, you can use this two-level naming option in the DATA statement while referencing any library other than WORK. For example, consider the following programming statements, which save the Car_Accidents data to the Hooks library. DATA Hooks.Car_Accidents; INFILE '/folders/myfolders/caraccidents.txt' DLM='09'X FIRSTOBS=2; INPUT ID Gender $ SeatBelt$ Age $ CellPhone $ Usage $; SAS also has the ability work directly with data sets when they reside in a SAS library. For example, the following code can be used to print the Car_Accidents data set from the Hooks library. PROC PRINT Data=Hooks.Car_Accidents; 28

29 VIEWING THE CONTENTS OF A SAS DATA SET As shown earlier, PROC CONTENTS can be used to view the contents of a dataset. Consider the following example. PROC CONTENTS DATA=Hooks.Car_Accidents; You can also use LABEL statements in the DATA step to specify labels for each variable (these labels can be up to 256 characters long, whereas variable names are limited to 32 characters). For example, consider the following programming statements. DATA Hooks.Car_Accidents; INFILE '/folders/myfolders/caraccidents.txt' DLM='09'X FIRSTOBS=2; INPUT ID Gender $ SeatBelt $ Age $ CellPhone $ Usage $; LABEL Gender = 'Gender of subject' SeatBelt = 'Whether a seatbelt was in use at time of accident' Age = 'Age of subject at time of accident' CellPhone = 'Whether a cell phone was in use at time of accident' Usage = 'How cell phone was used'; PROC CONTENTS data=hooks.car_accidents; 29

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

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

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

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

Importing CSV Data to All Character Variables Arthur L. Carpenter California Occidental Consultants, Anchorage, AK

Importing CSV Data to All Character Variables Arthur L. Carpenter California Occidental Consultants, Anchorage, AK PharmaSUG 2017 QT02 Importing CSV Data to All Character Variables Arthur L. Carpenter California Occidental Consultants, Anchorage, AK ABSTRACT Have you ever needed to import data from a CSV file and found

More information

Stat 302 Statistical Software and Its Applications SAS: Data I/O

Stat 302 Statistical Software and Its Applications SAS: Data I/O Stat 302 Statistical Software and Its Applications SAS: Data I/O Yen-Chi Chen Department of Statistics, University of Washington Autumn 2016 1 / 33 Getting Data Files Get the following data sets from the

More information

Using an ICPSR set-up file to create a SAS dataset

Using an ICPSR set-up file to create a SAS dataset Using an ICPSR set-up file to create a SAS dataset Name library and raw data files. From the Start menu, launch SAS, and in the Editor program, write the codes to create and name a folder in the SAS permanent

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

DSCI 325: Handout 3 Creating and Redefining Variable in SAS Spring 2017

DSCI 325: Handout 3 Creating and Redefining Variable in SAS Spring 2017 DSCI 325: Handout 3 Creating and Redefining Variable in SAS Spring 2017 Content Source: The Little SAS Book, Chapter 3, by L. Delwiche and S. Slaughter. CREATING NEW VARIABLES OR REDEFINING VARIABLES In

More information

Introduction to SAS. Cristina Murray-Krezan Research Assistant Professor of Internal Medicine Biostatistician, CTSC

Introduction to SAS. Cristina Murray-Krezan Research Assistant Professor of Internal Medicine Biostatistician, CTSC Introduction to SAS Cristina Murray-Krezan Research Assistant Professor of Internal Medicine Biostatistician, CTSC cmurray-krezan@salud.unm.edu 20 August 2018 What is SAS? Statistical Analysis System,

More information

DSCI 325: Handout 10 Summarizing Numerical and Categorical Data in SAS Spring 2017

DSCI 325: Handout 10 Summarizing Numerical and Categorical Data in SAS Spring 2017 DSCI 325: Handout 10 Summarizing Numerical and Categorical Data in SAS Spring 2017 USING PROC MEANS The routine PROC MEANS can be used to obtain limited summaries for numerical variables (e.g., the mean,

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

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

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

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

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

Level I: Getting comfortable with my data in SAS. Descriptive Statistics

Level I: Getting comfortable with my data in SAS. Descriptive Statistics Level I: Getting comfortable with my data in SAS. Descriptive Statistics Quick Review of reading Data into SAS Preparing Data 1. Variable names in the first row make sure they are appropriate for the statistical

More information

SAS Graphics & Code. stat 480 Heike Hofmann

SAS Graphics & Code. stat 480 Heike Hofmann SAS Graphics & Code stat 480 Heike Hofmann Outline Data Exploration in SAS Data Management Subsetting Graphics Code in SAS Your turn Download FBI crime data fbi-crime-60-11.csv from the website, open in

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

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

Lecture 1 Getting Started with SAS

Lecture 1 Getting Started with SAS SAS for Data Management, Analysis, and Reporting Lecture 1 Getting Started with SAS Portions reproduced with permission of SAS Institute Inc., Cary, NC, USA Goals of the course To provide skills required

More information

SAS/ACCESS Interface to PC Files for SAS Viya 3.2: Reference

SAS/ACCESS Interface to PC Files for SAS Viya 3.2: Reference SAS/ACCESS Interface to PC Files for SAS Viya 3.2: Reference SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS/ACCESS Interface to PC Files

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

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

STAT:5400 Computing in Statistics

STAT:5400 Computing in Statistics STAT:5400 Computing in Statistics Introduction to SAS Lecture 18 Oct 12, 2015 Kate Cowles 374 SH, 335-0727 kate-cowles@uiowaedu SAS SAS is the statistical software package most commonly used in business,

More information

Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics

Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics Stat 302 Statistical Software and Its Applications SAS: Data I/O & Descriptive Statistics Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 February 19, 2015 2 Getting

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/ACCESS Interface to PC Files for SAS Viya : Reference

SAS/ACCESS Interface to PC Files for SAS Viya : Reference SAS/ACCESS Interface to PC Files for SAS Viya : Reference SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS/ACCESS Interface to PC Files for

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

How to Import Part Numbers to Proman

How to Import Part Numbers to Proman How to Import Part Numbers to Proman This is a brief document that outlines how to take an Excel spreadsheet and either load new parts numbers into Proman or update data on existing part numbers. Before

More information

Lab 1. Introduction to R & SAS. R is free, open-source software. Get it here:

Lab 1. Introduction to R & SAS. R is free, open-source software. Get it here: Lab 1. Introduction to R & SAS R is free, open-source software. Get it here: http://tinyurl.com/yfet8mj for your own computer. 1.1. Using R like a calculator Open R and type these commands into the R Console

More information

SPSS. Faiez Mussa. 2 nd class

SPSS. Faiez Mussa. 2 nd class SPSS Faiez Mussa 2 nd class Objectives To describe opening and closing SPSS To introduce the look and structure of SPSS To introduce the data entry windows: Data View and Variable View To outline the components

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

DSCI 325: Handout 15 Introduction to SAS Macro Programming Spring 2017

DSCI 325: Handout 15 Introduction to SAS Macro Programming Spring 2017 DSCI 325: Handout 15 Introduction to SAS Macro Programming Spring 2017 The Basics of the SAS Macro Facility Macros are used to make SAS code more flexible and efficient. Essentially, the macro facility

More information

Creating Accounts and Test Registrations Using Batch Load

Creating Accounts and Test Registrations Using Batch Load Quick Start Guide Creating Accounts and Test Registrations Using Batch Load Document Purpose This document contains information used by site administrators to create ACT WorkKeys online accounts and test

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

IMPORTING A STUDENT LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST

IMPORTING A STUDENT  LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST IMPORTING A STUDENT EMAIL LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST In Synergy create a report for each class. 1. Log in to Synergy. 2. Open the list of available reports; select the Reports icon from

More information

Moving Data and Results Between SAS and Excel. Harry Droogendyk Stratia Consulting Inc.

Moving Data and Results Between SAS and Excel. Harry Droogendyk Stratia Consulting Inc. Moving Data and Results Between SAS and Excel Harry Droogendyk Stratia Consulting Inc. Introduction SAS can read ( and write ) anything Introduction In the end users want EVERYTHING in. Introduction SAS

More information

Tab-Delimited File and Compound Objects - Documents, Postcards, and Cubes. (Not Monographs)

Tab-Delimited File and Compound Objects - Documents, Postcards, and Cubes. (Not Monographs) 1" Tab-Delimited File and Compound Objects - Documents, Postcards, and Cubes (Not Monographs) See Help Sheet: Tab-Delimited File and Compound Object - Monograph Content "2" Page 4: Why use Tab-delimited

More information

Biostatistics & SAS programming. Kevin Zhang

Biostatistics & SAS programming. Kevin Zhang Biostatistics & SAS programming Kevin Zhang January 26, 2017 Biostat 1 Instructor Instructor: Dong Zhang (Kevin) Office: Ben Franklin Hall 227 Phone: 570-389-4556 Email: dzhang(at)bloomu.edu Class web:

More information

April 4, SAS General Introduction

April 4, SAS General Introduction PP 105 Spring 01-02 April 4, 2002 SAS General Introduction TA: Kanda Naknoi kanda@stanford.edu Stanford University provides UNIX computing resources for its academic community on the Leland Systems, which

More information

TIPS FROM THE TRENCHES

TIPS FROM THE TRENCHES TIPS FROM THE TRENCHES Christopher Bost MDRC SAS Users Group October 1, 2008 Recent user questions 2 How can I print long character values? How can I EXPORT formatted values to Excel? How can I check for

More information

STAT 7000: Experimental Statistics I

STAT 7000: Experimental Statistics I STAT 7000: Experimental Statistics I 2. A Short SAS Tutorial Peng Zeng Department of Mathematics and Statistics Auburn University Fall 2009 Peng Zeng (Auburn University) STAT 7000 Lecture Notes Fall 2009

More information

SAS Certification Handout #6: Ch

SAS Certification Handout #6: Ch SAS Certification Handout #6: Ch. 16-18 /************ Ch. 16 ******************* /* Suppose we have numeric variables ModelNumber Price Weight Change and date variable Date, plus a string variable Designer

More information

ECLT 5810 SAS Programming - Introduction

ECLT 5810 SAS Programming - Introduction ECLT 5810 SAS Programming - Introduction Why SAS? Able to process data set(s). Easy to handle multiple variables. Generate useful basic analysis Summary statistics Graphs Many companies and government

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

SAS CURRICULUM. BASE SAS Introduction

SAS CURRICULUM. BASE SAS Introduction SAS CURRICULUM BASE SAS Introduction Data Warehousing Concepts What is a Data Warehouse? What is a Data Mart? What is the difference between Relational Databases and the Data in Data Warehouse (OLTP versus

More information

Creating Accounts Using Batch Load

Creating Accounts Using Batch Load User Guide Creating Accounts Using Batch Load Document Purpose This document guides site administrators through the process of creating ACT WorkKeys online accounts for multiple examinees using a batch

More information

IMPORTING A STUDENT LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST

IMPORTING A STUDENT  LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST IMPORTING A STUDENT EMAIL LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST In Synergy create a report for each class. 1. Log in to Synergy. 2. Open the list of available reports; select the Reports icon from

More information

Introductory SAS example

Introductory SAS example Introductory SAS example STAT:5201 1 Introduction SAS is a command-driven statistical package; you enter statements in SAS s language, submit them to SAS, and get output. A fairly friendly user interface

More information

Using SAS Enterprise Guide to Coax Your Excel Data In To SAS

Using SAS Enterprise Guide to Coax Your Excel Data In To SAS Paper IT-01 Using SAS Enterprise Guide to Coax Your Excel Data In To SAS Mira Shapiro, Analytic Designers LLC, Bethesda, MD ABSTRACT Kirk Paul Lafler, Software Intelligence Corporation, Spring Valley,

More information

Note on homework for SAS date formats

Note on homework for SAS date formats Note on homework for SAS date formats I m getting error messages using the format MMDDYY10D. even though this is listed on websites for SAS date formats. Instead, MMDDYY10 and similar (without the D seems

More information

Beginner Beware: Hidden Hazards in SAS Coding

Beginner Beware: Hidden Hazards in SAS Coding ABSTRACT SESUG Paper 111-2017 Beginner Beware: Hidden Hazards in SAS Coding Alissa Wise, South Carolina Department of Education New SAS programmers rely on errors, warnings, and notes to discover coding

More information

(Updated 29 Oct 2016)

(Updated 29 Oct 2016) (Updated 29 Oct 2016) 1 Class Maker 2016 Program Description Creating classes for the new school year is a time consuming task that teachers are asked to complete each year. Many schools offer their students

More information

Interfacing with MS Office Conference 2017

Interfacing with MS Office Conference 2017 Conference 2017 Session Description: This session will detail procedures for importing/exporting data between AeriesSIS Web Version/AeriesSIS Client Version and other software packages, such as word processing

More information

Introduction to SAS Mike Zdeb ( , #61

Introduction to SAS Mike Zdeb ( , #61 Mike Zdeb (402-6479, msz03@albany.edu) #61 FORMAT, you can design informats for reading and interpreting non-standard data, and you can design formats for displaying data in non-standard ways....example

More information

Lab #3: Probability, Simulations, Distributions:

Lab #3: Probability, Simulations, Distributions: Lab #3: Probability, Simulations, Distributions: A. Objectives: 1. Reading from an external file 2. Create contingency table 3. Simulate a probability distribution 4. The Uniform Distribution Reading from

More information

A Guide to Retrieving Recruitment Information and Reports from MPathways. MPathways Queries for Prospects

A Guide to Retrieving Recruitment Information and Reports from MPathways. MPathways Queries for Prospects A Guide to Retrieving Recruitment Information and Reports from MPathways MPathways Queries for Prospects SA02 RecAdms Prospect Counts by Referral Source and Admit Term within Academic Program.rep SA02

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

Working with Data in Windows and Descriptive Statistics

Working with Data in Windows and Descriptive Statistics Working with Data in Windows and Descriptive Statistics HRP223 Topic 2 October 3 rd, 2012 Copyright 1999-2012 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected

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

ORS Employee Contact Information (ECI) Build MR.299

ORS Employee Contact Information (ECI) Build MR.299 ORS Employee Contact Information (ECI) Build MR.299 Use this program to generate a file that contains the contact information for your employees. The program will gather the information requested by the

More information

The SAS interface is shown in the following screen shot:

The SAS interface is shown in the following screen shot: The SAS interface is shown in the following screen shot: There are several items of importance shown in the screen shot First there are the usual main menu items, such as File, Edit, etc I seldom use anything

More information

Introduction to SPSS on the Macintosh. Scott Patterson,Ph.D. Broadcast and Electronic Communication Arts San Francisco State University.

Introduction to SPSS on the Macintosh. Scott Patterson,Ph.D. Broadcast and Electronic Communication Arts San Francisco State University. Introduction to SPSS on the Macintosh. Scott Patterson,Ph.D. Broadcast and Electronic Communication Arts San Francisco State University Spring 2000 This is a brief guide to using SPSS in the Macintosh

More information

Text Conversion Process

Text Conversion Process Text Conversion Process TEXT to EXCEL Conversion Template EXCEL to TEXT Purpose F. S. 285.985 - Transparency in Government Spending Data Agencies Steps 1. Get your Agency Contract Data via CD 2. Convert

More information

A Simple Guide to Using SPSS (Statistical Package for the. Introduction. Steps for Analyzing Data. Social Sciences) for Windows

A Simple Guide to Using SPSS (Statistical Package for the. Introduction. Steps for Analyzing Data. Social Sciences) for Windows A Simple Guide to Using SPSS (Statistical Package for the Social Sciences) for Windows Introduction ٢ Steps for Analyzing Data Enter the data Select the procedure and options Select the variables Run the

More information

Econ Stata Tutorial I: Reading, Organizing and Describing Data. Sanjaya DeSilva

Econ Stata Tutorial I: Reading, Organizing and Describing Data. Sanjaya DeSilva Econ 329 - Stata Tutorial I: Reading, Organizing and Describing Data Sanjaya DeSilva September 8, 2008 1 Basics When you open Stata, you will see four windows. 1. The Results window list all the commands

More information

HOW TO USE THE EXPORT FEATURE IN LCL

HOW TO USE THE EXPORT FEATURE IN LCL HOW TO USE THE EXPORT FEATURE IN LCL In LCL go to the Go To menu and select Export. Select the items that you would like to have exported to the file. To select them you will click the item in the left

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

Creation of SAS Dataset

Creation of SAS Dataset Creation of SAS Dataset Contents SAS data step Access to PC files Access to Oracle Access to SQL 2 SAS Data Step Contents Creating SAS data sets from raw data Creating and managing variables 3 Creating

More information

Chapter 14: Files and Streams

Chapter 14: Files and Streams Chapter 14: Files and Streams Files and the File and Directory Temporary storage Classes Usually called computer memory or random access memory (RAM) Variables use temporary storage Volatile Permanent

More information

PROC IMPORT and more. Or: when PROC IMPORT just doesn't do the job

PROC IMPORT and more. Or: when PROC IMPORT just doesn't do the job ABSTRACT SESUG Paper BB-180-2017 PROC IMPORT and more. Or: when PROC IMPORT just doesn't do the job David B. Horvath, MS, CCP PROC IMPORT comes in handy when quickly trying to load a CSV or similar file.

More information

1. After you have uploaded a file in the CE Import option, you will receive a notice asking if you want to open or save the results file.

1. After you have uploaded a file in the CE Import option, you will receive a notice asking if you want to open or save the results file. Correcting Invalid Data 1. After you have uploaded a file in the CE Import option, you will receive a notice asking if you want to open or save the results file. 2. Select Open so that you can save the

More information

Upload and Go! Tired of doing data entry? Save time and increase cash flow by submitting accounts in bulk upload. Upload and Go!

Upload and Go! Tired of doing data entry? Save time and increase cash flow by submitting accounts in bulk upload. Upload and Go! Tired of doing data entry? Save time and increase cash flow by submitting accounts in bulk upload. Step 1: TIP: Make sure the file, to be uploaded, does not have any blank lines above the header line or

More information

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL We have spent the first part of the course learning Excel: importing files, cleaning, sorting, filtering, pivot tables and exporting

More information

A Practical Introduction to SAS Data Integration Studio

A Practical Introduction to SAS Data Integration Studio ABSTRACT A Practical Introduction to SAS Data Integration Studio Erik Larsen, Independent Consultant, Charleston, SC Frank Ferriola, Financial Risk Group, Cary, NC A useful and often overlooked tool which

More information

Chapter 2 The SAS Environment

Chapter 2 The SAS Environment Chapter 2 The SAS Environment Abstract In this chapter, we begin to become familiar with the basic SAS working environment. We introduce the basic 3-screen layout, how to navigate the SAS Explorer window,

More information

Dr. Barbara Morgan Quantitative Methods

Dr. Barbara Morgan Quantitative Methods Dr. Barbara Morgan Quantitative Methods 195.650 Basic Stata This is a brief guide to using the most basic operations in Stata. Stata also has an on-line tutorial. At the initial prompt type tutorial. In

More information

Open Office Calc (Spreadsheet) Tutorial

Open Office Calc (Spreadsheet) Tutorial Open Office Calc (Spreadsheet) Tutorial Table of Contents Introduction...3 What is a Spreadsheet?...3 Starting OpenOffice Calc...3 OpenOffice Calc (Spreadsheet) Basics...4 Creating a New Document...5 Entering

More information

Making ERAS work for you

Making ERAS work for you Making ERAS work for you (Beyond the basics) If you ve used ERAS for your application season, you ve probably mastered the basics; collecting mail from ERAS Post Office, checking boxes in the status listing,

More information

Creating a Box-and-Whisker Graph in Excel: Step One: Step Two:

Creating a Box-and-Whisker Graph in Excel: Step One: Step Two: Creating a Box-and-Whisker Graph in Excel: It s not as simple as selecting Box and Whisker from the Chart Wizard. But if you ve made a few graphs in Excel before, it s not that complicated to convince

More information

The easiest way to get these data into STATA is for you to fire up the STATA Data Editor and just type the data into the spreadsheet-like interface.

The easiest way to get these data into STATA is for you to fire up the STATA Data Editor and just type the data into the spreadsheet-like interface. 17.871 Spring 2012 How to Use the STATA infile and infix Commands STATA is a very flexible program, allowing you to read-in and manipulate data in many different forms. This is good, because social science

More information

Survey Design, Distribution & Analysis Software. professional quest. Whitepaper Extracting Data into Microsoft Excel

Survey Design, Distribution & Analysis Software. professional quest. Whitepaper Extracting Data into Microsoft Excel Survey Design, Distribution & Analysis Software professional quest Whitepaper Extracting Data into Microsoft Excel WHITEPAPER Extracting Scoring Data into Microsoft Excel INTRODUCTION... 1 KEY FEATURES

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

BIOMETRICS INFORMATION

BIOMETRICS INFORMATION BIOMETRICS INFORMATION (You re 95% likely to need this information) PAMPHLET NO. # 24 DATE: February 9, 1990 SUBJECT: Reading WATFILE files into SAS WATFILE is a useful package for data entry because it

More information

-Using Excel- *The columns are marked by letters, the rows by numbers. For example, A1 designates row A, column 1.

-Using Excel- *The columns are marked by letters, the rows by numbers. For example, A1 designates row A, column 1. -Using Excel- Note: The version of Excel that you are using might vary slightly from this handout. This is for Office 2004 (Mac). If you are using a different version, while things may look slightly different,

More information

Eventus Example Series Using Non-CRSP Data in Eventus 7 1

Eventus Example Series Using Non-CRSP Data in Eventus 7 1 Eventus Example Series Using Non-CRSP Data in Eventus 7 1 Goal: Use Eventus software version 7.0 or higher to construct a mini-database of data obtained from any source, and run one or more event studies

More information

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013 DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013 GETTING STARTED PAGE 02 Prerequisites What You Will Learn MORE TASKS IN MICROSOFT EXCEL PAGE 03 Cutting, Copying, and Pasting Data Basic Formulas Filling Data

More information

Basic tasks in Excel 2013

Basic tasks in Excel 2013 Basic tasks in Excel 2013 Excel is an incredibly powerful tool for getting meaning out of vast amounts of data. But it also works really well for simple calculations and tracking almost any kind of information.

More information

Using GSUBMIT command to customize the interface in SAS Xin Wang, Fountain Medical Technology Co., ltd, Nanjing, China

Using GSUBMIT command to customize the interface in SAS Xin Wang, Fountain Medical Technology Co., ltd, Nanjing, China PharmaSUG China 2015 - Paper PO71 Using GSUBMIT command to customize the interface in SAS Xin Wang, Fountain Medical Technology Co., ltd, Nanjing, China One of the reasons that SAS is widely used as the

More information

Chemistry 30 Tips for Creating Graphs using Microsoft Excel

Chemistry 30 Tips for Creating Graphs using Microsoft Excel Chemistry 30 Tips for Creating Graphs using Microsoft Excel Graphing is an important skill to learn in the science classroom. Students should be encouraged to use spreadsheet programs to create graphs.

More information

Making use of other Applications

Making use of other Applications AppGameKit 2 Collision Using Arrays Making use of other Applications Although we need game software to help makes games for modern devices, we should not exclude the use of other applications to aid the

More information

A Brief Word About Your Exam

A Brief Word About Your Exam Exam 1 Studyguide A Brief Word About Your Exam Your exam will be MONDAY, FEBRUARY 20 DURING CLASS TIME. You will have 50 minutes to complete Exam 1. If you arrive late or leave early, you forfeit any time

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

An Introduction to SAS University Edition

An Introduction to SAS University Edition An Introduction to SAS University Edition Ron Cody From An Introduction to SAS University Edition. Full book available for purchase here. Contents List of Programs... xi About This Book... xvii About the

More information

SAS Training Spring 2006

SAS Training Spring 2006 SAS Training Spring 2006 Coxe/Maner/Aiken Introduction to SAS: This is what SAS looks like when you first open it: There is a Log window on top; this will let you know what SAS is doing and if SAS encountered

More information

Utilizing the VNAME SAS function in restructuring data files

Utilizing the VNAME SAS function in restructuring data files AD13 Utilizing the VNAME SAS function in restructuring data files Mirjana Stojanovic, Duke University Medical Center, Durham, NC Donna Niedzwiecki, Duke University Medical Center, Durham, NC ABSTRACT Format

More information

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction In this exercise, we will learn how to reorganize and reformat a data

More information

Learning Worksheet Fundamentals

Learning Worksheet Fundamentals 1.1 LESSON 1 Learning Worksheet Fundamentals After completing this lesson, you will be able to: Create a workbook. Create a workbook from a template. Understand Microsoft Excel window elements. Select

More information

Depending on the computer you find yourself in front of, here s what you ll need to do to open SPSS.

Depending on the computer you find yourself in front of, here s what you ll need to do to open SPSS. 1 SPSS 11.5 for Windows Introductory Assignment Material covered: Opening an existing SPSS data file, creating new data files, generating frequency distributions and descriptive statistics, obtaining printouts

More information