April 4, SAS General Introduction

Size: px
Start display at page:

Download "April 4, SAS General Introduction"

Transcription

1 PP 105 Spring April 4, 2002 SAS General Introduction TA: Kanda Naknoi Stanford University provides UNIX computing resources for its academic community on the Leland Systems, which can be accessed through the Stanford University Network (SUNet). This document provides a basic overview of the SAS System data analysis package that is running on the Leland Systems. You must have a Leland account to use SAS. To open a Leland account you will need a SUNet ID; see Introduction to the Leland Systems. For information on using UNIX (including very useful information on viewing and copying files, aborting a program, and checking to see if the printers are working), see the UNIX Command Summary reference card or the document Getting Started in UNIX. All of these documents are available at the Consulting Desk on the second floor of Sweet Hall and at Currently, SAS runs on most of the Leland Systems such as Elaine and Tree. The workstations for use are located on the second floor of Sweet Hall. You can run your SAS programs in batch mode; to do so, you must also be able to use a UNIX text editor. (The EMACS Reference Card, also available on the second floor of Sweet Hall, is very useful in learning the fundamentals of EMACS, a popular text editor.) In addition, you can run programs interactively, or under the X Window System. However, the SAS language commands and syntax are the same across all user interfaces, and are consistent with previous versions. Note that while SAS is not case sensitive, the UNIX operating system is. In the sample program command lines in this document, bold letters represent SAS or UNIX keywords, which should not be changed.\ This document is also available online. At the UNIX prompt, type: elaine5> lelanddocs Running SAS in Batch Mode You can execute SAS command files from the UNIX prompt. This is called batch mode. To use batch mode, store the SAS commands in a text file using a UNIX text editor such as EMACS, and then submit them to SAS with the following command: elaine5> sas filename For example: elaine5> sas census.sas

2 This command will process all the commands in the file called census.sas and normally create two new files. The first file created, census.log, contains an annotated version of your SAS program, including error messages, and other important messages regarding the execution of your program. The second, census.lst, contains the SAS output, which lists the results produced by the SAS program. You can view both files using the EMACS text editor, or with the UNIX command more. If no.lst file was created, that may mean that SAS came across errors that stopped the processing. In that case, check the.log file to see what errors need to be corrected. It is always a good idea to check your.log file to make sure that the program ran correctly. It is suggested that you give all your SAS program files a common extension, such as.sas. An Introduction to SAS Statements and Syntax A SAS program is constructed with SAS statements. A SAS statement is a string of SAS keywords, SAS names, and special characters and operators ending in a semicolon. A statement asks SAS to perform an operation or gives SAS information. Some examples are provided below: INPUT X 15; DATA ONE; Most SAS statements begin with a keyword that identifies what kind of a statement it is. The keyword in the first example is INPUT; it identifies an INPUT statement. The kinds of names that can appear in SAS statements include the names of variables, SAS data sets, formats, procedures, options, macros, and file references, among others. In the first example X is a variable, and in the second example ONE is a data set. Every SAS statement must end with a semicolon, which is one type of special character. Examples of other special characters and operators include the dollar sign $, the equals sign =, and the addition sign +. For more information on the components of SAS statements, see the manual SAS Language Guide. Here are general rules for writing SAS statements: Begin all SAS statements with an identifying keyword and end them with a semicolon. SAS statements are free-format. That is, they can begin and end anywhere on a line, as long as they end with a semicolon. One statement can continue over several lines, and several statements can occupy the same line. You may use as many blank spaces or lines as you want to separate fields or to separate sets of statements. Use comments and blank lines to set off logical parts of your program. You can include comments anywhere in the program. This is an example of a comment: /* comments are enclosed in these symbols */

3 SAS Data and Proc Steps: Building Blocks of a SAS Program A SAS program is comprised of SAS steps, which in turn are made up of SAS statements. There are two kinds of steps: DATA steps and PROC (procedure) steps. These steps are the building blocks of all SAS programs. Generally, DATA steps read unprocessed or raw data and organize them into a SAS data set, and PROC steps process these data sets. A SAS program can consist of a DATA step or a PROC step, or both. Within a program, DATA and PROC steps can appear in any order and with any frequency. DATA Steps: Each DATA step includes statements asking SAS to create one or more new SAS data sets and programming statements that perform the manipulations necessary to build these data sets. The DATA step begins with a data statement and can include any number of program statements. The DATA step must be used whenever any transformation of variables is needed. The DATA step is described in more detail in Basic Data Management in SAS later in this document. PROC Steps: Each PROC step asks SAS to execute a procedure that is defined as part of the SAS language, usually with a SAS data set as input. Additional statements used in the PROC step give the program more information about the results that you want. Note that while some additional statements are necessary for the proper execution of a procedure, other additional statements may be optional. Different manuals list the statements available with each PROC step, but many of them can be found in the SAS Procedures Guide. A PROC step always starts with a PROC statement. The following are two examples: PROC CONTENTS; PROC MEANS; VAR AGE INCOME; Since a data set was not specified in the previous two examples, SAS will process the last data set mentioned in the program. Therefore, it is a good habit to name the SAS data set you want the procedure to analyze. To name the SAS data set follow the example: PROC PRINT DATA = datasetname; PROC statements have a wide variety of uses within SAS. Most notably, all statistical analysis routines in SAS are accessed through PROC statements. Basic Data Management in SAS Reading in Raw Data In this section we refer to two kinds of data files: raw data files and SAS data sets. Raw data files are numbers or characters which can be entered and/or viewed using a text

4 editor. SAS data sets, also known as system files, cannot be viewed using an editor (i.e., they are binary files, rather than text files). When bringing raw data into SAS, use a DATA step to read the data, as in the example below. This process creates a SAS data set containing the compiled version of the raw data and any computed or recoded variables defined in the DATA step. The SAS System creates two types of data sets: temporary and permanent. A temporary SAS data set exists only for the duration of the current SAS session. Therefore, data stored in a temporary SAS data set cannot be retrieved for use in later SAS sessions. See the following section Creating a Permanent SAS Data Set for information about permanent SAS data sets. To create a temporary SAS data set from a raw data file, follow this example: FILENAME fileref 'path/filename'; DATA sasname; INFILE fileref; INPUT variable names; The FILENAME statement indicates the location and the name of the UNIX file to be read by the SAS program. The fileref is a 'nickname' by which the file is referenced inside the SAS program. The fileref must be eight or fewer characters and must begin with a letter. The filename is the actual name of the UNIX file that holds your data, represented by the fileref. You must specify the filename in the FILENAME line. The filename should be preceded by the path, which tells SAS which directory or subdirectory the raw data file is stored in. With the DATA step, you specify the input format, recoding, and computation of new variables. The keyword DATA signifies the beginning of the DATA step whereas sasname is the 'nickname' by which you can subsequently refer to the data set you are creating in this data step. The INFILE statement uses the previously defined fileref to indicate which raw data file is to be read in, and INPUT specifies the names of the variables to be read in. There are three main forms of INPUT statements: The LIST input is the simplest form of input statement. It assumes that the variables are recorded in the same order for each case (observation), but not necessarily in the same column locations. Values are separated by blanks or commas, and there may be several cases on the same row. For example, if there are five variables specified, SAS assumes that a new case begins after each group of five values, regardless of carriage returns in the raw data. Missing values must be represented by a place holder such as a period. The COLUMN input is used when the raw data file has the variables in the same column location for every case (observation). When using column input, you list in the input statement the variable names and identify the location of the corresponding data fields in the data lines by specifying the column positions. You can use column input to skip fields when reading in data, and fields can be read in any order. No place holder is required for missing data.

5 The FORMATTED input is used when the data requires special instructions to be read correctly. For example, dates or numeric data containing commas should be read using formatted input. There are many formats in SAS, and they are described in detail in the manual SAS Language Guide. The following example uses LIST input. Suppose you want to use the raw data file called census.data (located in a subdirectory called USinfo), which contains information from a U.S. survey, as input data for a SAS program. If you chose the name rawdata for the fileref and the name usa for the SAS data set, the corresponding DATA step would be: FILENAME rawdata '~/Country/USinfo/census.data'; DATA usa; INFILE rawdata; INPUT NAME $ SEX $ ID AGE INCOME TEST1 TEST2; This example reads in the raw data, as list input from a file named census.data in the subdirectory USinfo of the directory Country, and creates a temporary SAS data set named usa. If no path name is specified, it will be assumed that the file is located in the current directory. No matter what directory you are in, you can use ~/ to indicate your home directory. SAS can handle two kinds of variables: numeric and character. A numeric variable is a variable whose values are numbers. A character variable may contain alphabetic and special characters, as well as numbers. When reading in a character variable, a $ must follow the variable name. In the previous example, the variables name and sex are character variables. Creating a Permanent SAS Data Set If you are going to use the same data set a few times, it is usually worth your time to create a permanent SAS data set (also known as a system file) for the data. A permanent SAS data set exists after the end of the current SAS session and can, therefore, be retrieved for use in future programs or sessions. A permanent SAS data set contains the compiled version of the raw data file, as well as any computed or recoded variables. Using permanent SAS data sets makes for quicker, more efficient computer processing than does reading in raw data for each program. The SAS System identifies permanent SAS data sets using names that consist of two parts separated by a period. The first part is called the first-level name, or libref; it identifies the SAS library where the data set is stored. In UNIX, a SAS Library is a directory. The second part is called the second-level name or sasfn; it identifies the specific SAS data set. Both the libref and the sasfn can consist of one to eight characters.

6 The LIBNAME statement is used to associate a libref with the name of the directory where you intend to store the permanent SAS data set. The syntax of the DATA step to create a permanent SAS data set is: FILENAME fileref 'path/file'; LIBNAME libref 'path'; DATA libref.sasfn; INFILE fileref; INPUT variable names; In the following example, using the same raw data file described previously, you create a permanent SAS data set named survey.ssd01 in the subdirectory Usinfo of the directory Country. Note that the extension ssd01 is attached to all permanent SAS data sets. FILENAME rawdata '~/Country/USinfo/census.data'; LIBNAME usa '~/Country/USinfo'; DATA usa.survey; INFILE rawdata; INPUT NAME $ SEX $ ID AGE INCOME TEST1 TEST2; The permanent SAS data set is now in a file named survey.ssd01, which is in your USinfo subdirectory. If you wish to save the SAS system file in your current directory, you can replace the path in the LIBNAME with the notation '.' In the following example '.' has replaced '~/Country/USinfo' in the LIBNAME statement. LIBNAME usa '.'; Using a Permanent SAS Data Set Once a permanent SAS data set is created, use the LIBNAME statement in conjunction with the Data= libref.sasfn option in the PROC step. The following is a program that produces descriptive statistics, using the permanent SAS data set which was created in the previous section. PROC MEANS DATA = usa.survey; VAR age income; You can use permanent SAS data sets in SAS procedures in just the same way as you can use temporary data sets.

7 Modifying a SAS Data Set Once a permanent SAS data set is created, use the LIBNAME statement in conjunction with the SET statement to modify an existing SAS data set. Note that the SET command can be used only for SAS data sets; in contrast, the INFILE statement used above can be used only with raw data sets. Following is a program that reads in the permanent SAS data set which was created earlier, and calculates a new variable called test3. DATA newvar; SET usa.survey; test3 = test1 + test2; The data set newvar is now a temporary SAS data set. If you want to make it into a permanent file that will hold all the variables in usa.survey as well as the newly created variable test3, you must give it a two-level name, such as usa.newvar. The name usa.newvar implies that the data set newvar will be stored in the directory referenced by usa, that is 'Country/USinfo'. Saving the Output Data of a SAS Procedure In some cases, you may want to save the results of a procedure analysis into a SAS data set for further analysis. For example, when running a regression you may later want to plot the residuals of the observations in the regression. The following example saves residuals and predicted values from a regression. The same general form of the OUTPUT statement can apply to almost any procedure. All the variables in the original data set are included in the new data set, along with variables created in the OUTPUT statement. To see the specific variables that can be saved for each procedure, check the manual for that procedure. As mentioned earlier, if you want to create a permanent SAS data set you must specify a two-level name in the OUTPUT statement. PROC REG DATA = usa.survey; MODEL z = x1 x2; OUTPUT OUT = res RESIDUAL = zresid PREDICTED = zhat; This program creates a temporary output data set named res. In addition to the variables in the permanent data set survey.ssd01, res contains the variables zhat, whose values are the predicted values of the dependent variable z, and zresid, whose values are the residual values of z.

8 Examining and Sorting SAS Data Sets All of the following procedures are described in detail in the manual SAS Procedures Guide. The CONTENTS Procedure The CONTENTS procedure can be used to generate more general information from a data set. In the following example, PROC CONTENTS will produce a list of the names, positions, formats, and labels for all variables in the survey.ssd01 data set, as well as the date the data set was created. PROC CONTENTS DATA = usa.survey; The PRINT Procedure The PRINT procedure lists the values of some or all variables contained in a SAS data set. The PRINT procedure can be used to check that the data set you have just created actually contains the right variables and observations. You can produce customized reports with PRINT procedure options and statements. The structure of the PRINT procedure is: LIBNAME libref 'path'; PROC PRINT DATA = libref.sasfn; The above syntax will display all of the variables in the data set. If you only wish to display specific variables, you can add the VAR statement. In the following example, PROC PRINT displays the variables in the order listed in the VAR statement. In other words, the variables sex and id will be displayed, in that order, from the survey.ssd01 SAS data set. PROC PRINT DATA = usa.survey; VAR sex id; Note that the PRINT procedure does NOT send any output to a printer. The SORT Procedure The primary function of the SORT procedure is to sort a SAS data set based on the values of a specific variable or variables. The SORT procedure is also necessary for certain SAS procedures that require the data to be sorted before they can be analyzed. For example,

9 the BY command in many SAS procedures will run a separate analysis for each specified value of a variable. However, BY group processing requires the data to be sorted on the variable of interest. PROC SORT rearranges the observations in the data set according to the values of the variables in the BY statement. If more than one variable is specified, PROC SORT first sorts the data according to the values of the first variable, then sorts each resulting group according to the second variable, and so on for all successive variables. PROC SORT has the following structure: LIBNAME libref 'path'; PROC SORT DATA = libref.sasfn; BY variable names; This program sorts the data in the survey.ssd01 data set by the value of the variable id : PROC SORT DATA = usa.survey; BY id; SAS Options There are many different options that can be specified at the beginning of a SAS program. Among the most common are LINESIZE and MEMSIZE. SAS often generates output that is too wide to fit on 8.5"x11" paper. One solution is to insert the following statement at the beginning of your program: OPTIONS LINESIZE = 80; By default, SAS uses 32 megabytes of memory, which is sufficient in most cases. However, if your.log file tells you that it ran out of memory, you should use the memsize option, which has the following form: OPTIONS MEMSIZE = nm; where "n" is the the memory you wish to use in megabytes. Moving SAS Files Between Different Operating Systems The following section assumes you know how to use FTP (File Transfer Protocol). If you do not, and need to move a SAS data set between different operating systems, contact the Sweet Hall Consulting Desk ( or consult@leland). Occasionally, you may need to move a SAS data set from one operating system to another. For example, you may receive data from a location that uses an operating system other than UNIX, or you may want to move your files to or from SAS on a PC or

10 Macintosh to UNIX. Since the form of SAS data sets is specific to the operating system under which the files have been created, moving data sets from one machine to another requires some extra steps. Note that if you are moving a data set from one UNIX account to another, you don't need to export and import, just use binary FTP. To move data via FTP you must first convert the data set to a portable file by running the short SAS export program shown below. Portable files are versions of data sets that can be imported into SAS under all operating systems. Second, use FTP to move the portable file to the destination computer. You must use binary FTP to move the file. Third, import the portable file into a standard data set on the destination computer by running the short SAS import program shown below. Once you have done all of this, you can erase the portable file (from both accounts). Do not erase the portable file before checking that your data have been imported correctly (for example, by using the PRINT or CONTENTS procedures). In the example below, a file called survey, which is in the sasfiles subdirectory, will be moved by writing it into a portable file called expfile.exp that can be transferred by FTP and then imported. The PROC COPY procedure creates the portable version, Expfile.exp, of the SAS data set, survey. 1.Write a SAS program containing the following commands: LIBNAME mylib '~/Stat/sasfiles'; LIBNAME tranfile XPORT 'expfile.exp'; PROC COPY IN = mylib OUT = tranfile; SELECT survey; If you type ls at the UNIX prompt you will see that you now have a new file called expfile.exp. Note: You may move a directory that consists of several data sets at once. In the example above, if you delete the line SELECT survey, you will move a subdirectory called sasfiles by writing it into a portable file called expfile.exp. Using this procedure, Expfile.exp contains a portable version of all of the data sets in the sasfiles subdirectory. 2.FTP the file expfile.exp. Remember to use binary FTP. 3.On the destination computer, create and run the following import program, which saves the data from the portable file back into all the standard data sets from sasfiles, regardless of the number of files you exported previously. LIBNAME tranfile XPORT 'expfile.exp'; LIBNAME newlib '~/USinfo/new'; PROC COPY IN = tranfile OUT = newlib;

11 Remarks 1. This handout is reproduced from the following link: 2. Another useful link:

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

APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software. Each of these steps can be executed independently.

APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software. Each of these steps can be executed independently. 255 APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software Introduction 255 Generating a QMF Export Procedure 255 Exporting Queries from QMF 257 Importing QMF Queries into Query and Reporting 257 Alternate

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

A Guided Tour Through the SAS Windowing Environment Casey Cantrell, Clarion Consulting, Los Angeles, CA

A Guided Tour Through the SAS Windowing Environment Casey Cantrell, Clarion Consulting, Los Angeles, CA A Guided Tour Through the SAS Windowing Environment Casey Cantrell, Clarion Consulting, Los Angeles, CA ABSTRACT The SAS system running in the Microsoft Windows environment contains a multitude of tools

More information

SAS Data Libraries. Definition CHAPTER 26

SAS Data Libraries. Definition CHAPTER 26 385 CHAPTER 26 SAS Data Libraries Definition 385 Library Engines 387 Library Names 388 Physical Names and Logical Names (Librefs) 388 Assigning Librefs 388 Associating and Clearing Logical Names (Librefs)

More information

Using SAS Files CHAPTER 3

Using SAS Files CHAPTER 3 55 CHAPTER 3 Using SAS Files Introduction to SAS Files 56 What Is a SAS File? 56 Types of SAS Files 57 Using Short or Long File Extensions in SAS Libraries 58 SAS Data Sets (Member Type: Data or View)

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

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

Customizing Your SAS Session

Customizing Your SAS Session 13 CHAPTER 2 Customizing Your SAS Session Introduction 13 Specifying System Options in the SAS Command 14 Configuration Files 15 Creating a User Configuration File 15 Specifying a User Configuration File

More information

Syntax Conventions for SAS Programming Languages

Syntax Conventions for SAS Programming Languages Syntax Conventions for SAS Programming Languages SAS Syntax Components Keywords A keyword is one or more literal name components of a language element. Keywords are uppercase, and in reference documentation,

More information

MARK CARPENTER, Ph.D.

MARK CARPENTER, Ph.D. MARK CARPENTER, Ph.D. Module 1 : THE DATA STEP (1, 2, 3) Keywords : DATA, INFILE, INPUT, FILENAME, DATALINES Procedures : PRINT Pre-Lecture Preparation: create directory on your local hard drive called

More information

Procedures. PROC CATALOG CATALOG=<libref.>catalog <ENTRYTYPE=etype> <KILL>; CONTENTS <OUT=SAS-data-set> <FILE=fileref;>

Procedures. PROC CATALOG CATALOG=<libref.>catalog <ENTRYTYPE=etype> <KILL>; CONTENTS <OUT=SAS-data-set> <FILE=fileref;> 355 CHAPTER 19 Procedures SAS Procedures under Windows 355 CATALOG 355 CIMPORT 356 CONTENTS 357 CONVERT 358 CPORT 361 DATASETS 361 OPTIONS 363 PMENU 364 PRINTTO 365 SORT 367 SAS Procedures under Windows

More information

Stat 5411 Lab 1 Fall Assignment: Turn in copies of bike.sas and bike.lst from your SAS run. Turn this in next Friday with your assignment.

Stat 5411 Lab 1 Fall Assignment: Turn in copies of bike.sas and bike.lst from your SAS run. Turn this in next Friday with your assignment. Stat 5411 Lab 1 Fall 2009 Assignment: Turn in copies of bike.sas and bike.lst from your SAS run. Turn this in next Friday with your assignment. To run SAS on UMD's UNIX machine ub, you can either (1) create

More information

STAT 3304/5304 Introduction to Statistical Computing. Introduction to SAS

STAT 3304/5304 Introduction to Statistical Computing. Introduction to SAS STAT 3304/5304 Introduction to Statistical Computing Introduction to SAS What is SAS? SAS (originally an acronym for Statistical Analysis System, now it is not an acronym for anything) is a program designed

More information

SAS Studio: A New Way to Program in SAS

SAS Studio: A New Way to Program in SAS SAS Studio: A New Way to Program in SAS Lora D Delwiche, Winters, CA Susan J Slaughter, Avocet Solutions, Davis, CA ABSTRACT SAS Studio is an important new interface for SAS, designed for both traditional

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

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

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

A Step by Step Guide to Learning SAS

A Step by Step Guide to Learning SAS A Step by Step Guide to Learning SAS 1 Objective Familiarize yourselves with the SAS programming environment and language. Learn how to create and manipulate data sets in SAS and how to use existing data

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

FSEDIT Procedure Windows

FSEDIT Procedure Windows 25 CHAPTER 4 FSEDIT Procedure Windows Overview 26 Viewing and Editing Observations 26 How the Control Level Affects Editing 27 Scrolling 28 Adding Observations 28 Entering and Editing Variable Values 28

More information

Beginning Tutorials. Introduction to SAS/FSP in Version 8 Terry Fain, RAND, Santa Monica, California Cyndie Gareleck, RAND, Santa Monica, California

Beginning Tutorials. Introduction to SAS/FSP in Version 8 Terry Fain, RAND, Santa Monica, California Cyndie Gareleck, RAND, Santa Monica, California Introduction to SAS/FSP in Version 8 Terry Fain, RAND, Santa Monica, California Cyndie Gareleck, RAND, Santa Monica, California ABSTRACT SAS/FSP is a set of procedures used to perform full-screen interactive

More information

ABSTRACT MORE THAN SYNTAX ORGANIZE YOUR WORK THE SAS ENTERPRISE GUIDE PROJECT. Paper 50-30

ABSTRACT MORE THAN SYNTAX ORGANIZE YOUR WORK THE SAS ENTERPRISE GUIDE PROJECT. Paper 50-30 Paper 50-30 The New World of SAS : Programming with SAS Enterprise Guide Chris Hemedinger, SAS Institute Inc., Cary, NC Stephen McDaniel, SAS Institute Inc., Cary, NC ABSTRACT SAS Enterprise Guide (with

More information

Optimizing System Performance

Optimizing System Performance 243 CHAPTER 19 Optimizing System Performance Definitions 243 Collecting and Interpreting Performance Statistics 244 Using the FULLSTIMER and STIMER System Options 244 Interpreting FULLSTIMER and STIMER

More information

Epidemiology Principles of Biostatistics Chapter 3. Introduction to SAS. John Koval

Epidemiology Principles of Biostatistics Chapter 3. Introduction to SAS. John Koval Epidemiology 9509 Principles of Biostatistics Chapter 3 John Koval Department of Epidemiology and Biostatistics University of Western Ontario What we will do today We will learn to use use SAS to 1. read

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

CHAPTER 7 Using Other SAS Software Products

CHAPTER 7 Using Other SAS Software Products 77 CHAPTER 7 Using Other SAS Software Products Introduction 77 Using SAS DATA Step Features in SCL 78 Statements 78 Functions 79 Variables 79 Numeric Variables 79 Character Variables 79 Expressions 80

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

SAS/FSP 9.2. Procedures Guide

SAS/FSP 9.2. Procedures Guide SAS/FSP 9.2 Procedures Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2008. SAS/FSP 9.2 Procedures Guide. Cary, NC: SAS Institute Inc. SAS/FSP 9.2 Procedures

More information

Lab #1: Introduction to Basic SAS Operations

Lab #1: Introduction to Basic SAS Operations Lab #1: Introduction to Basic SAS Operations Getting Started: OVERVIEW OF SAS (access lab pages at http://www.stat.lsu.edu/exstlab/) There are several ways to open the SAS program. You may have a SAS icon

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

Using the SQL Editor. Overview CHAPTER 11

Using the SQL Editor. Overview CHAPTER 11 205 CHAPTER 11 Using the SQL Editor Overview 205 Opening the SQL Editor Window 206 Entering SQL Statements Directly 206 Entering an SQL Query 206 Entering Non-SELECT SQL Code 207 Creating Template SQL

More information

You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables

You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables Jennie Murack You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables How to conduct basic descriptive statistics

More information

Storing and Reusing Macros

Storing and Reusing Macros 101 CHAPTER 9 Storing and Reusing Macros Introduction 101 Saving Macros in an Autocall Library 102 Using Directories as Autocall Libraries 102 Using SAS Catalogs as Autocall Libraries 103 Calling an Autocall

More information

Using SAS Files. Introduction to SAS Files, Data Libraries, and Engines CHAPTER 4

Using SAS Files. Introduction to SAS Files, Data Libraries, and Engines CHAPTER 4 83 CHAPTER 4 Using SAS Files Introduction to SAS Files, Data Libraries, and Engines 83 Types of SAS Files 84 SAS Data Files (Member Type DATA) 85 SAS Data Views (Member Type VIEW) 85 Filename Extensions

More information

Going Under the Hood: How Does the Macro Processor Really Work?

Going Under the Hood: How Does the Macro Processor Really Work? Going Under the Hood: How Does the Really Work? ABSTRACT Lisa Lyons, PPD, Inc Hamilton, NJ Did you ever wonder what really goes on behind the scenes of the macro processor, or how it works with other parts

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

An Introduction to SAS/FSP Software Terry Fain, RAND, Santa Monica, California Cyndie Gareleck, RAND, Santa Monica, California

An Introduction to SAS/FSP Software Terry Fain, RAND, Santa Monica, California Cyndie Gareleck, RAND, Santa Monica, California An Introduction to SAS/FSP Software Terry Fain, RAND, Santa Monica, California Cyndie Gareleck, RAND, Santa Monica, California ABSTRACT SAS/FSP is a set of procedures used to perform full-screen interactive

More information

EXAMPLE 2: INTRODUCTION TO SAS AND SOME NOTES ON HOUSEKEEPING PART II - MATCHING DATA FROM RESPONDENTS AT 2 WAVES INTO WIDE FORMAT

EXAMPLE 2: INTRODUCTION TO SAS AND SOME NOTES ON HOUSEKEEPING PART II - MATCHING DATA FROM RESPONDENTS AT 2 WAVES INTO WIDE FORMAT EXAMPLE 2: PART I - INTRODUCTION TO SAS AND SOME NOTES ON HOUSEKEEPING PART II - MATCHING DATA FROM RESPONDENTS AT 2 WAVES INTO WIDE FORMAT USING THESE WORKSHEETS For each of the worksheets you have a

More information

Statements. Previous Page Next Page. SAS 9.2 Language Reference: Dictionary, Third Edition. Definition of Statements. DATA Step Statements

Statements. Previous Page Next Page. SAS 9.2 Language Reference: Dictionary, Third Edition. Definition of Statements. DATA Step Statements Page 1 of 278 Previous Page Next Page SAS 9.2 Language Reference: Dictionary, Third Edition Statements Definition of Statements DATA Step Statements Global Statements ABORT Statement ARRAY Statement Array

More information

Basic Concept Review

Basic Concept Review Basic Concept Review Quiz Using the Programming Workspace Referencing Files and Setting Options Editing and Debugging SAS Programs End of Review SAS Format Format Formats are variable

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

Introduction to SAS Statistical Package

Introduction to SAS Statistical Package Instructor: Introduction to SAS Statistical Package Biostatistics 140.632 Lecture 1 Lucy Meoni lmeoni@jhmi.edu Teaching Assistant : Sorina Eftim seftim@jhsph.edu Lecture/Lab: Room 3017 WEB site: www.biostat.jhsph.edu/bstcourse/bio632/default.htm

More information

Introduction OR CARDS. INPUT DATA step OUTPUT DATA 8-1

Introduction OR CARDS. INPUT DATA step OUTPUT DATA 8-1 Introduction Thus far, all the DATA step programs we have seen have involved reading and writing only SAS data sets. In this chapter we will present techniques to read and write external or "raw" files

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

SAS Programming Basics

SAS Programming Basics SAS Programming Basics SAS Programs SAS Programs consist of three major components: Global statements Procedures Data steps SAS Programs Global Statements Procedures Data Step Notes Data steps and procedures

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

Some Basics of CQUEST

Some Basics of CQUEST Some Basics of CQUEST The operating system in RW labs (107/109 and 211) is Windows XP. There are a few terminals in RW 213 running Linux. SAS is run from a Linux Server. Your account is the same and files

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

Using SAS Files CHAPTER 3

Using SAS Files CHAPTER 3 77 CHAPTER 3 Using SAS Files Introduction to SAS Files 78 What Is a SAS File? 78 Types of SAS Files 79 Using Short or Long File Extensions in SAS Libraries 80 SAS Data Sets (Member Type: Data or View)

More information

The DATA Statement: Efficiency Techniques

The DATA Statement: Efficiency Techniques The DATA Statement: Efficiency Techniques S. David Riba, JADE Tech, Inc., Clearwater, FL ABSTRACT One of those SAS statements that everyone learns in the first day of class, the DATA statement rarely gets

More information

Using Unnamed and Named Pipes

Using Unnamed and Named Pipes 227 CHAPTER 12 Using Unnamed and Named Pipes Overview of Pipes 227 Using Unnamed Pipes 228 Unnamed Pipe Syntax 228 Using Redirection Sequences 229 Unnamed Pipe Example 229 Using Named Pipes 230 Named Pipe

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

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

Introductory Guide to SAS:

Introductory Guide to SAS: Introductory Guide to SAS: For UVM Statistics Students By Richard Single Contents 1 Introduction and Preliminaries 2 2 Reading in Data: The DATA Step 2 2.1 The DATA Statement............................................

More information

Chapter 2 SYSTEM OVERVIEW. SYS-ED/ Computer Education Techniques, Inc.

Chapter 2 SYSTEM OVERVIEW. SYS-ED/ Computer Education Techniques, Inc. Chapter 2 SYSTEM OVERVIEW SYS-ED/ Computer Education Techniques, Inc. Objectives You will learn: Structure of a program. Easytrieve Plus job processing logic. Easytrieve Plus syntax rules. How to use listing

More information

SAS/ASSIST Software Setup

SAS/ASSIST Software Setup 173 APPENDIX 3 SAS/ASSIST Software Setup Appendix Overview 173 Setting Up Graphics Devices 173 Setting Up Remote Connect Configurations 175 Adding a SAS/ASSIST Button to Your Toolbox 176 Setting Up HTML

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

INTRODUCTION TO SAS STAT 525 FALL 2013

INTRODUCTION TO SAS STAT 525 FALL 2013 INTRODUCTION TO SAS STAT 525 FALL 2013 Statistical analyses, in practice, are always carried out by computer software In this class, I will focus on the use of SAS to perform these analyses, specifically

More information

Routing the SAS Log and SAS Procedure Output

Routing the SAS Log and SAS Procedure Output 187 CHAPTER 8 Routing the SAS Log and SAS Procedure Output Introduction 187 Attributes of the SAS Log and Procedure Output Files 188 Controlling Log and Output Destinations 188 Windowing Environment Mode

More information

USING the IEDATA add-in FROM THE SPREADSHEET MENU

USING the IEDATA add-in FROM THE SPREADSHEET MENU The IEDATA add-in The IEDATA add-in is designed to allow access to the data stored in the Informa Economics database from within a Microsoft Excel spreadsheet. With this add-in, you have access to thousands

More information

SAS. IT Resource Management 2.7: Glossary

SAS. IT Resource Management 2.7: Glossary SAS IT Resource Management 2.7: Glossary The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS IT Resource Management 2.7: Glossary. Cary, NC: SAS Institute Inc.

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

Chapter 2 Entering Data. Chapter Table of Contents

Chapter 2 Entering Data. Chapter Table of Contents Chapter 2 Entering Data Chapter Table of Contents INVOKING SAS/INSIGHT SOFTWARE... 28 ENTERING VALUES... 31 NAVIGATING THE DATA WINDOW... 33 ADDING VARIABLES AND OBSERVATIONS... 34 DEFINING VARIABLES...

More information

GETTING DATA INTO THE PROGRAM

GETTING DATA INTO THE PROGRAM GETTING DATA INTO THE PROGRAM 1. Have a Stata dta dataset. Go to File then Open. OR Type use pathname in the command line. 2. Using a SAS or SPSS dataset. Use Stat Transfer. (Note: do not become dependent

More information

from the source host, use the FTP put command to copy a file from the source host to the target host.

from the source host, use the FTP put command to copy a file from the source host to the target host. 31 CHAPTER 4 Transferring a Transport File or a CEDA File File Transfer 31 Transport File Attributes 31 Using the FILENAME Statement or the FTP Utility to Specify File Attributes 32 Using the FILENAME

More information

Introduction to the OpenVMS Operating Environment

Introduction to the OpenVMS Operating Environment 3 CHAPTER 1 Introduction to the OpenVMS Operating Environment Introduction 3 What Is the OpenVMS Operating Environment? 4 OpenVMS VAX and Alpha Platforms 4 Access to OpenVMS 4 Login Procedure 4 Files that

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

15-122: Principles of Imperative Computation

15-122: Principles of Imperative Computation 15-122: Principles of Imperative Computation Lab 0 Navigating your account in Linux Tom Cortina, Rob Simmons Unlike typical graphical interfaces for operating systems, here you are entering commands directly

More information

OpenVMS Operating Environment

OpenVMS Operating Environment 81 CHAPTER 11 OpenVMS Operating Environment Listing OpenVMS System File Attributes 81 Specifying File Attributes for OpenVMS 82 Determining the SAS Release Used to Create a Member for OpenVMS 82 Mounting

More information

An Introduction to MATLAB See Chapter 1 of Gilat

An Introduction to MATLAB See Chapter 1 of Gilat 1 An Introduction to MATLAB See Chapter 1 of Gilat Kipp Martin University of Chicago Booth School of Business January 25, 2012 Outline The MATLAB IDE MATLAB is an acronym for Matrix Laboratory. It was

More information

(on CQUEST) A.L. Gibbs

(on CQUEST) A.L. Gibbs STA 302 / 1001 Introduction to SAS for Regression (on CQUEST) A.L. Gibbs September 2007 1 Some Basics of CQUEST The operating system in the ESC lab (1046) is Linux. The operating system in the RW labs

More information

Basics of Stata, Statistics 220 Last modified December 10, 1999.

Basics of Stata, Statistics 220 Last modified December 10, 1999. Basics of Stata, Statistics 220 Last modified December 10, 1999. 1 Accessing Stata 1.1 At USITE Using Stata on the USITE PCs: Stata is easily available from the Windows PCs at Harper and Crerar USITE.

More information

ST Lab 1 - The basics of SAS

ST Lab 1 - The basics of SAS ST 512 - Lab 1 - The basics of SAS What is SAS? SAS is a programming language based in C. For the most part SAS works in procedures called proc s. For instance, to do a correlation analysis there is proc

More information

EE168 Lab/Homework #1 Introduction to Digital Image Processing Handout #3

EE168 Lab/Homework #1 Introduction to Digital Image Processing Handout #3 EE168 Lab/Homework #1 Introduction to Digital Image Processing Handout #3 We will be combining laboratory exercises with homework problems in the lab sessions for this course. In the scheduled lab times,

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

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

BASICS BEFORE STARTING SAS DATAWAREHOSING Concepts What is ETL ETL Concepts What is OLAP SAS. What is SAS History of SAS Modules available SAS

BASICS BEFORE STARTING SAS DATAWAREHOSING Concepts What is ETL ETL Concepts What is OLAP SAS. What is SAS History of SAS Modules available SAS SAS COURSE CONTENT Course Duration - 40hrs BASICS BEFORE STARTING SAS DATAWAREHOSING Concepts What is ETL ETL Concepts What is OLAP SAS What is SAS History of SAS Modules available SAS GETTING STARTED

More information

DBLOAD Procedure Reference

DBLOAD Procedure Reference 131 CHAPTER 10 DBLOAD Procedure Reference Introduction 131 Naming Limits in the DBLOAD Procedure 131 Case Sensitivity in the DBLOAD Procedure 132 DBLOAD Procedure 132 133 PROC DBLOAD Statement Options

More information

Moving and Accessing SAS 9.2 Files

Moving and Accessing SAS 9.2 Files Moving and Accessing SAS 9.2 Files The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2008. Moving and Accessing SAS 9.2 Files. Cary, NC: SAS Institute Inc. Moving and

More information

Moving and Accessing SAS. 9.1 Files

Moving and Accessing SAS. 9.1 Files Moving and Accessing SAS 9.1 Files The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. Moving and Accessing SAS 9.1 Files. Cary, NC: SAS Institute Inc. Moving and

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

An Introduction to Stata Part I: Data Management

An Introduction to Stata Part I: Data Management An Introduction to Stata Part I: Data Management Kerry L. Papps 1. Overview These two classes aim to give you the necessary skills to get started using Stata for empirical research. The first class will

More information

Emacs Tutorial. Creating or Opening a File. Geog 405/605 Computer Programming for Environmental Research Fall 2018

Emacs Tutorial. Creating or Opening a File. Geog 405/605 Computer Programming for Environmental Research Fall 2018 An Emacs tutorial generated by its authors is available online by typing control-h t from within an editing session. It is not good. This tutorial is written for an audience that is assumed to have used

More information

You will be asked to enter your SUNet ID (Stanford University Network Identifier). See the following URL for information on obtaining a SUNet ID:

You will be asked to enter your SUNet ID (Stanford University Network Identifier). See the following URL for information on obtaining a SUNet ID: 2011-2012 Using DEWI This document covers the basic features of the Data Extraction Web Interface (DEWI) System. DEWI is an easy-to-use, platform independent one-stop-shop for data discovery and extraction.

More information

So, Your Data are in Excel! Ed Heaton, Westat

So, Your Data are in Excel! Ed Heaton, Westat Paper AD02_05 So, Your Data are in Excel! Ed Heaton, Westat Abstract You say your customer sent you the data in an Excel workbook. Well then, I guess you'll have to work with it. This paper will discuss

More information

What Is SAS? CHAPTER 1 Essential Concepts of Base SAS Software

What Is SAS? CHAPTER 1 Essential Concepts of Base SAS Software 3 CHAPTER 1 Essential Concepts of Base SAS Software What Is SAS? 3 Overview of Base SAS Software 4 Components of the SAS Language 4 SAS Files 4 SAS Data Sets 5 External Files 5 Database Management System

More information

Introduction to the SAS Macro Facility

Introduction to the SAS Macro Facility Introduction to the SAS Macro Facility Uses for SAS Macros The macro language allows for programs that are dynamic capable of selfmodification. The major components of the macro language include: Macro

More information

How to Use the STATA infile and infix Commands

How to Use the STATA infile and infix Commands 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 data come in various

More information

Introduction to SAS. I. Understanding the basics In this section, we introduce a few basic but very helpful commands.

Introduction to SAS. I. Understanding the basics In this section, we introduce a few basic but very helpful commands. Center for Teaching, Research and Learning Research Support Group American University, Washington, D.C. Hurst Hall 203 rsg@american.edu (202) 885-3862 Introduction to SAS Workshop Objective This workshop

More information

Ten Great Reasons to Learn SAS Software's SQL Procedure

Ten Great Reasons to Learn SAS Software's SQL Procedure Ten Great Reasons to Learn SAS Software's SQL Procedure Kirk Paul Lafler, Software Intelligence Corporation ABSTRACT The SQL Procedure has so many great features for both end-users and programmers. It's

More information

Version: Copyright World Programming Limited

Version: Copyright World Programming Limited Version: 3.0.7.0.650 Copyright 2002-2017 World Programming Limited www.teamwpc.co.uk Contents Introduction... 5 About This Guide... 5 About WPS...5 Users of SAS Software...6 Getting Started... 8 Workbench

More information

Loading Data. Introduction. Understanding the Volume Grid CHAPTER 2

Loading Data. Introduction. Understanding the Volume Grid CHAPTER 2 19 CHAPTER 2 Loading Data Introduction 19 Understanding the Volume Grid 19 Loading Data Representing a Complete Grid 20 Loading Data Representing an Incomplete Grid 21 Loading Sparse Data 23 Understanding

More information

External Files. Definition CHAPTER 38

External Files. Definition CHAPTER 38 525 CHAPTER 38 External Files Definition 525 Referencing External Files Directly 526 Referencing External Files Indirectly 526 Referencing Many Files Efficiently 527 Referencing External Files with Other

More information

Initializing and Configuring the SAS System

Initializing and Configuring the SAS System 3 CHAPTER 1 Initializing and Configuring the SAS System Invoking SAS in the OS/390 Environment 4 Invoking SAS under TSO: the SAS CLIST 4 Invoking SAS in Batch Mode: the SAS Cataloged Procedure 5 Logging

More information

The SERVER Procedure. Introduction. Syntax CHAPTER 8

The SERVER Procedure. Introduction. Syntax CHAPTER 8 95 CHAPTER 8 The SERVER Procedure Introduction 95 Syntax 95 Syntax Descriptions 96 Examples 101 ALLOCATE SASFILE Command 101 Syntax 101 Introduction You invoke the SERVER procedure to start a SAS/SHARE

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

Introduction (SPSS) Opening SPSS Start All Programs SPSS Inc SPSS 21. SPSS Menus

Introduction (SPSS) Opening SPSS Start All Programs SPSS Inc SPSS 21. SPSS Menus Introduction (SPSS) SPSS is the acronym of Statistical Package for the Social Sciences. SPSS is one of the most popular statistical packages which can perform highly complex data manipulation and analysis

More information

SAS Display Manager Windows. For Windows

SAS Display Manager Windows. For Windows SAS Display Manager Windows For Windows Computers with SAS software SSCC Windows Terminal Servers (Winstat) Linux Servers (linstat) Lab computers DoIT Info Labs (as of June 2014) In all Labs with Windows

More information

Preserving your SAS Environment in a Non-Persistent World. A Detailed Guide to PROC PRESENV. Steven Gross, Wells Fargo, Irving, TX

Preserving your SAS Environment in a Non-Persistent World. A Detailed Guide to PROC PRESENV. Steven Gross, Wells Fargo, Irving, TX Preserving your SAS Environment in a Non-Persistent World A Detailed Guide to PROC PRESENV Steven Gross, Wells Fargo, Irving, TX ABSTRACT For Enterprise Guide users, one of the challenges often faced is

More information