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

Size: px
Start display at page:

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

Transcription

1

2 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

3 Text Files Text files of various types can be read via the data step. Two essential statements for this operation include: infile file-reference <options>; Directs the data step to a file. The file reference can be a path (in quotes) or a filename reference. input variable list; Lists variables to read, with some instructions for how to read them.

4 Basic Input With no options assigned, the infile statement will assume data values are space delimited. In this case, the most basic form of the input statement is: input variable_1 <$> variable_n <$>; $ is an indicator that the variable is character variable must follow SAS naming conventions

5 Simple Example Read the data file flights.prn from the raw data subfolder of the data sets folder:

6 Simple Example Code: data test; infile '\\seashare\blumj\sas Programming Data\raw data\flights.prn'; input flight_no date $ destination$ first_class economy; run;

7 Simple Example Code: data test; infile '\\seashare\blumj\sas Programming Data\raw data\flights.prn'; input flight_no date $ destination$ first_class economy; run; Infile statement includes a full-path reference to the file to be used.

8 Simple Example Code: data test; infile '\\seashare\blumj\sas Programming Data\raw data\flights.prn'; input flight_no date $ destination$ first_class economy; run; List (legal) variable names in order corresponding to columns in the data. Each character variable must be followed by the $. It can be appended to the name or a space can be placed between.

9 Results Something is not quite right in the date column.

10 data test; Process infile '\\seashare\blumj\sas Programming Data\raw data\flights.prn'; input flight_no date $ destination$ first_class economy; run; During compilation, the PDV is set up based on the specifications in the input statement. PDV flight_no date destination first_class economy

11 data test; Process infile '\\seashare\blumj\sas Programming Data\raw data\flights.prn'; input flight_no date $ destination$ first_class economy; run; During execution data is loaded into an input buffer and parsed as specified by the input and infile statements. Input Buffer / 1 1 / L A X PDV flight_no date destination first_class economy

12 data test; Process infile '\\seashare\blumj\sas Programming Data\raw data\flights.prn'; input flight_no date $ destination$ first_class economy; run; Spaces are taken as delimiters between values. Multiple, consecutive spaces are seen as a single delimiter Input Buffer / 1 1 / L A X PDV flight_no date destination first_class economy /11/20 LAX

13 Default length of character variables is 8 A length statement (before input) would be useful. data test; Process infile '\\seashare\blumj\sas Programming Data\raw data\flights.prn'; input flight_no date $ destination$ first_class economy; run; Input Buffer / 1 1 / L A X PDV flight_no date destination first_class economy /11/20 LAX

14 This record is output to the data set, and the process continues until the end of the raw file is reached. data test; Process infile '\\seashare\blumj\sas Programming Data\raw data\flights.prn'; input flight_no date $ destination$ first_class economy; run; Input Buffer / 1 1 / L A X PDV flight_no date destination first_class economy /11/20 LAX

15 The FILENAME Statement The filename statement looks similar to the libname statement: filename fileref 'path'; The rules for the fileref are the same as those for a libref. The path can point directly to an individual file or a folder. One method: filename myfile '\\seashare\blumj\sas Programming Data\raw data\flights.prn'; data test; infile myfile; input flight_no date $ destination$ first_class economy; run;

16 The FILENAME Statement A more flexible method: filename rawdata '\\seashare\blumj\sas Programming Data\raw data'; data test; infile rawdata('flights.prn'); input flight_no date $ destination$ first_class economy; run;

17 The FILENAME Statement A more flexible method: filename rawdata '\\seashare\blumj\sas Programming Data\raw data'; data test; infile rawdata('flights.prn'); input flight_no date $ destination$ first_class economy; run; Since the filename points to a folder, individual files must be requested when the fileref is used.

18 Pitfalls Consider the data file flights2.prn, which is only slightly different than the previous one (the zero is a blank):

19 Process at 9 th Record data test2; infile rawdata ('flights2.prn'); length date $ 10; input flight_no date $ destination$ first_class economy; run; Input Buffer / 1 5 / L A X PDV date flight_no destination first_class economy 12/15/ LAX 187 The multiple spaces are seen as a single delimiter (not as missing). What happens with economy?

20 Process at 9 th Record data test2; infile rawdata ('flights2.prn'); length date $ 10; input flight_no date $ destination$ first_class economy; run; Input Buffer / 1 5 / D F W PDV date flight_no destination first_class economy 12/15/ LAX SAS wants to fill in a value, so it gets more information from the raw file the next record

21 Results Only 9 records, and the 9 th is incorrect.

22 Pitfalls As a general rule, spaces are lousy delimiters consider flights3.prn which adds the pilot s name as the first column. What will happen with this?

23 Other Delimiters Instructions for which delimiter is present are set in the infile statement. Consider flights.csv :

24 Other Delimiters The dlm= option allows for specification of the delimiter, which can be a literal keyboard character. Code: data test3; infile rawdata('flights.csv') dlm=','; length date $ 10; input flight_no date $ destination$ first_class economy; run;

25 More Infile Options 9 th Record still problematic DSD: (delimiter sensitive data) Ignores delimiters inside quoted values. Treats consecutive delimiters as containing a missing value. Automatically changes the default delimiter to a comma. Update: data test3; infile rawdata('flights.csv') dsd; length date $ 10; input flight_no date $ destination$ first_class economy; run;

26 Results 9 th record now has appropriate missing first class value and 10 th record reads correctly.

27 More Infile Options Consider flights2.csv : Here the 9 th record is incomplete, with the current code the result is:

28 More Infile Options This comes from the flight number on the 10 th record.

29 More Infile Options This is missing since it tries to read the date (12/15/2000) here, which is not valid as a number. Once again, SAS tries to fill in information from the next record.

30 More Infile Options MISSOVER: Forces all values that cannot be filled with the information in the current input buffer to be set to missing. Update: data test4; infile rawdata('flights2.csv') dsd missover; length date $ 10; input flight_no date $ destination$ first_class economy; run;

31 Results 9 th record now has appropriate missing first class and economy values and 10 th record reads correctly.

32 More Infile Options In flights3.csv, column headers are preserved: The firstobs= option: Selects the first row to read from the raw data.

33 Firstobs=

34 TAB as a Delimiter TAB is not a standard keyboard character in the SAS editor it is just a series of spaces. For flights.txt (which is space delimited), what is the correct form of the dlm= option? ASCII hexadecimal codes can be given in the form: '##'x The hex code for TAB is 09 data test6; infile rawdata('flights.txt') dlm='09'x; length date $ 10; input flight_no date $ destination$ first_class economy; run;

35 TAB as a Delimiter See if you can read in flights2.txt, flights3.txt and flights4.txt.

36 Informats In the previous examples the date was read as character instead of what SAS recognizes as a date. Many formats can be used in a dual role as informats, which provide instructions for how to read raw data. Code: data test7; infile rawdata('flights.txt') dlm='09'x; input flight_no date:mmddyy10. destination$ first_class economy; run;

37 Informats In the previous examples the date was read as character instead of what SAS recognizes as a date. Many formats can be used in a dual role as informats, which provide instructions for how to read raw data. Code: The colon (:) is used as an operator data test7; to attach an informat to a variable. infile rawdata('flights.txt') dlm='09'x; input flight_no date:mmddyy10. destination$ first_class economy; run;

38 Informats The dates are converted, but no format is applied. Use a format statement to pick the format desired.

39 Fixed Column Files In flights.dat, data are in fixed positions: Flight number, columns 1-3 Date, columns 4-11 Destination, columns First Class, columns (or just 16 & 17) Economy, columns 18-20

40 Fixed Column Files Here the form of the input statement is quite different. Two potential forms can be used on each variable variable <$> start-stop start is the starting column position, stop is the ending column position. $ is used to denote character variables. This form cannot use variable informat. n is the starting column position The informat includes the total width The informat determines if the variable is character or numeric.

41 First version: Fixed Column Files data test8; infile rawdata('flights.dat'); input flight_no 1-3 date$ 4-11 destination$ first_class economy 18-20; run; In this case, information in the input buffer is parsed into pieces corresponding to the specified columns.

42 Result

43 Second version: Fixed Column Files data test9; infile rawdata('flights.dat'); flight_no date destination first_class economy 3.; format date date9.; run; In this case, information in the input buffer is parsed into pieces corresponding to the start column and format width.

44 Result

45 Fixed Column Files One method or the other can be chosen for each variable, but different variables can use different methods in the same input statement: data test10; infile rawdata('flights.dat'); input flight_no date mmddyy8. destination$ first_class economy 18-20; format date date9.; run; Date is the only variable that needs an informat, so the others can be read using the column span.

46 Exercise 1 Read the projects.txt data, which has the columns of: state, job id, date, region, equipment cost, personnel cost and pollution code. Compute a variable for total job cost and another for pollution type using the encoding: 1 = TSP 2 = LEAD 3 = CO 4 = SO2 5 = O3

47 Exercise 2 Read the employee list.csv data, which has the columns as noted at the right. In addition to the variables present, you should also compute a bonus and final salary for each employee. The bonuses are 9% for all pilots and 7.5% for all mechanics and 6.75% for all others. Description of Field Employee s Last Name Employee s First Name Country City Phone Number Employee ID Job Code Salary Data Type Character Character Character Character Character Character Character Currency ($xxx,xxx)

48 Exercise 3 Read the delay.dat data, which has the columns as noted at the right. The airline classifies departure times in one of four ways: midnight to 7 a.m. as early morning, 7 a.m. to noon as morning, noon to 6 p.m. as daytime and 6 p.m. to midnight as evening. Create an additional variable to reflect these classifications. Additionally, using the scheduled time of departure and the delay, define a variable that contains the actual departure time. Description of Field Columns Data Type Flight number 1-3 Character Departure date 4-10 ddmonyy Departure time Time/Character hh:mm Destination Character (3-letter airport code) Flight distance (mi) Numeric Ticketed passengers boarding Transfers from other flights Numeric Numeric Non-revenue passengers Numeric Aircraft Capacity Numeric Departure Delay (min negative indicates an early departure) Numeric

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

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

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

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

More information

DSCI 325: Handout 2 Getting Data into SAS Spring 2017

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

More information

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

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

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

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

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

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

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

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

SAS Visual Analytics Environment Stood Up? Check! Data Automatically Loaded and Refreshed? Not Quite

SAS Visual Analytics Environment Stood Up? Check! Data Automatically Loaded and Refreshed? Not Quite Paper SAS1952-2015 SAS Visual Analytics Environment Stood Up? Check! Data Automatically Loaded and Refreshed? Not Quite Jason Shoffner, SAS Institute Inc., Cary, NC ABSTRACT Once you have a SAS Visual

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

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

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

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

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

The data step allows for creation, assembly and modification of SAS data sets.

The data step allows for creation, assembly and modification of SAS data sets. The data step allows for creation, assembly and modification of SAS data sets. Sources of information include existing SAS data sets, database files, spreadsheets and other raw data files. Like a procedure,

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

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

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

More information

Generating a Custom Bill of Materials

Generating a Custom Bill of Materials Generating a Custom Bill of Materials Old Content - visit altium.com/documentation Modified by on 6-Nov-2013 This tutorial describes how to use the Report Manager to set up a Bill of Materials (BOM) report.

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

Importing and Exporting Data

Importing and Exporting Data 14 Importing and Exporting Data SKILL SUMMARY Skills Exam Objective Objective Number Importing Data Import data into tables. Append records from external data. Import tables from other databases. Create

More information

Field Types and Import/Export Formats

Field Types and Import/Export Formats Chapter 3 Field Types and Import/Export Formats Knowing Your Data Besides just knowing the raw statistics and capacities of your software tools ( speeds and feeds, as the machinists like to say), it s

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

Bulk Creation of Data Acquisition Parameters

Bulk Creation of Data Acquisition Parameters Bulk Creation of Data Acquisition Parameters Item Type text; Proceedings Authors Kupferschmidt, Benjamin Publisher International Foundation for Telemetering Journal International Telemetering Conference

More information

Importing Flat File Sources in Test Data Management

Importing Flat File Sources in Test Data Management Importing Flat File Sources in Test Data Management Copyright Informatica LLC 2017. Informatica and the Informatica logo are trademarks or registered trademarks of Informatica LLC in the United States

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

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

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PASS4TEST. IT Certification Guaranteed, The Easy Way!  We offer free update service for one year PASS4TEST IT Certification Guaranteed, The Easy Way! \ http://www.pass4test.com We offer free update service for one year Exam : A00-201 Title : SAS base programming exam Vendors : SASInstitute Version

More information

Exchanging data between SAS and Microsoft Excel

Exchanging data between SAS and Microsoft Excel Paper CC 011 Exchanging data between SAS and Microsoft Excel Yuqing Xiao, Southern Company, Atlanta, GA ABSTRACT Transferring data between SAS and Microsoft Excel has gained popularity over the years.

More information

2 Spreadsheet Considerations 3 Zip Code and... Tax ID Issues 4 Using The Format... Cells Dialog 5 Creating The Source... File

2 Spreadsheet Considerations 3 Zip Code and... Tax ID Issues 4 Using The Format... Cells Dialog 5 Creating The Source... File Contents I Table of Contents Part 1 Introduction 1 Part 2 Importing from Microsoft Excel 1 1 Overview... 1 2 Spreadsheet Considerations... 1 3 Zip Code and... Tax ID Issues 2 4 Using The Format... Cells

More information

Exercise: Using Numbers

Exercise: Using Numbers Exercise: Using Numbers Problem: You are a spy going into an evil party to find the super-secret code phrase (made up of letters and spaces), which you will immediately send via text message to your team

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

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

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

Microsoft Office 2011 for Mac: Introductory Q&As Excel Chapter 3

Microsoft Office 2011 for Mac: Introductory Q&As Excel Chapter 3 Microsoft Office 2011 for Mac: Introductory Q&As Excel Chapter 3 What if Excel automatically opens a workbook when I start Excel? (EX 139) If you had a workbook open when you last quit Excel, Excel will,

More information

SAS Data Libraries. Objectives. Airline Data Library. SAS Data Libraries. SAS Data Libraries FILES LIBRARIES

SAS Data Libraries. Objectives. Airline Data Library. SAS Data Libraries. SAS Data Libraries FILES LIBRARIES Reading Raw Data, Formats and Data Types 2.1 SAS Data Libraries 2.2 SAS List Reports from SAS Data Sets 2.3 Formats in SAS 2.4 Reading Raw Data into SAS 2.5 Minitab List Reports from Minitab Worksheets

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

Manual Physical Inventory Upload Created on 3/17/2017 7:37:00 AM

Manual Physical Inventory Upload Created on 3/17/2017 7:37:00 AM Created on 3/17/2017 7:37:00 AM Table of Contents... 1 Page ii Procedure After completing this topic, you will be able to manually upload physical inventory. Navigation: Microsoft Excel > New Workbook

More information

OPENING A LEADS.TXT FILE IN EXCEL 2010

OPENING A LEADS.TXT FILE IN EXCEL 2010 From the project manager to a team of administrative, programming, and technical specialists, ATS believes in a team approach that brings together all of the necessary elements pre-conference and onsite

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

P6 Professional Reporting Guide Version 18

P6 Professional Reporting Guide Version 18 P6 Professional Reporting Guide Version 18 August 2018 Contents About the P6 Professional Reporting Guide... 7 Producing Reports and Graphics... 9 Report Basics... 9 Reporting features... 9 Report Wizard...

More information

P6 Professional Importing and Exporting Guide Version 18

P6 Professional Importing and Exporting Guide Version 18 P6 Professional Importing and Exporting Guide Version 18 August 2018 Contents About the P6 Professional Importing and Exporting Guide... 5 Importing and Exporting Data... 7 Import/Export Overview... 7

More information

SUGI 29 Data Warehousing, Management and Quality

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

More information

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

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

Assignment 1 MIS Spreadsheet (Excel)

Assignment 1 MIS Spreadsheet (Excel) Assignment 1 MIS Spreadsheet (Excel) Summary Create a Microsoft Excel file with six worksheets that provides extensive use of Excel capabilities including: importing data, formatting data in tables, summarizing

More information

Scribe SolutionPak: QuickBooks Desktop to Salesforce

Scribe SolutionPak: QuickBooks Desktop to Salesforce Scribe SolutionPak: QuickBooks Desktop to Salesforce 9/26/2012 Important Notice No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means,

More information

KIP Track System User Guide

KIP Track System User Guide User Guide Contents Introduction... 2 System Requirements... 3 Installation... 3 Custom Name of the KIP Track fields... 6 KIP Track Rules... 6 Setup KIP Track Data... 6 Enter and Upload KIP Track Data...

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

PracticeMaster Report Writer Guide

PracticeMaster Report Writer Guide Copyright 2014-2015 Software Technology, Inc. 1621 Cushman Drive Lincoln, NE 68512 (402) 423-1440 Tabs3.com Tabs3, PracticeMaster, and the "pinwheel" symbol ( ) are registered trademarks of Software Technology,

More information

File Importing - Text Files

File Importing - Text Files File Importing - Text Files With this tutorial we are going to go through the basic elements of importing a text file that contains several records (lines) each containing several fields. Sample Data -

More information

WKn Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 9

WKn Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 9 117 CHAPTER 9 WKn Chapter Note to UNIX and OS/390 Users 117 Import/Export Facility 117 Understanding WKn Essentials 118 WKn Files 118 WKn File Naming Conventions 120 WKn Data Types 120 How the SAS System

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

Get Data from External Sources Activities

Get Data from External Sources Activities PMI Online Education Get Data from External Sources Activities Microcomputer Applications Table of Contents Objective 1: Import Data into Excel... 3 Importing Data from a Word Table... 3 Importing Data

More information

Introduction to the SAS System

Introduction to the SAS System Introduction to the SAS System The SAS Environment The SAS Environment The SAS Environment has five main windows The SAS Environment The Program Editor The SAS Environment The Log: Notes, Warnings and

More information

WinFlexOne - Importer MHM Resources LLC

WinFlexOne - Importer MHM Resources LLC WinFlexOne - Importer 2008 MHM Resources LLC WinFlexOne Importer - Employee 2 This module provides: Overview Log In Source File Importer Profile Download Activate Import Source File WinFlexOne Importer

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

Updating Users. Updating Users CHAPTER

Updating Users. Updating Users CHAPTER CHAPTER 18 Update the existing user information that is in the database by using the following procedure:, page 18-1 Retaining Stored Values, page 18-2 Using the BAT Spreadsheet to Create a CSV Data File

More information

Importing and Exporting Information

Importing and Exporting Information Importing and Exporting Information Importing and Exporting Information A Companion Document to Attendance Enterprise 1.6 2011, InfoTronics, Inc. All Rights Reserved. InfoTronics, Attendance, and Attendance

More information

Use mail merge to create and print letters and other documents

Use mail merge to create and print letters and other documents Use mail merge to create and print letters and other documents Contents Use mail merge to create and print letters and other documents... 1 Set up the main document... 1 Connect the document to a data

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

II-9Importing and Exporting Data

II-9Importing and Exporting Data Chapter II-9 II-9Importing and Exporting Data Importing Data... 117 Load Waves Submenu... 119 Line Terminators... 120 LoadWave Text Encodings... 120 Loading Delimited Text Files... 120 Determining Column

More information

Beginning Excel for Windows

Beginning Excel for Windows Beginning Excel for Windows Version: 2002 Academic Computing Support Information Technology Services Tennessee Technological University September 2003 1. Opening Excel for Windows and Setting the Toolbars

More information

Chapter 1. Manage the data

Chapter 1. Manage the data 1.1. Coding of survey questions Appendix A shows a questionnaire with the corresponding coding sheet. Some observations of the selected variables are shown in the following table. AGE SEX JOB INCOME EDUCATE

More information

Payflow Implementer's Guide FAQs

Payflow Implementer's Guide FAQs Payflow Implementer's Guide FAQs FS-PF-FAQ-UG-201702--R016.00 Fairsail 2017. All rights reserved. This document contains information proprietary to Fairsail and may not be reproduced, disclosed, or used

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

Quick start guide DOC-OEMCS-PP-US-01/01/12

Quick start guide DOC-OEMCS-PP-US-01/01/12 Quick start guide DOC-OEMCS-PP-US-01/01/12 The information in this manual is not binding and may be modified without prior notice. Supply of the software described in this manual is subject to a user license.

More information

Module Four: Formulas and Functions

Module Four: Formulas and Functions Page 4.1 Module Four: Formulas and Functions Welcome to the fourth lesson in the PRC s Excel Spreadsheets Course 1. This lesson concentrates on adding formulas and functions to spreadsheet to increase

More information

How to bulk upload users

How to bulk upload users City & Guilds How to bulk upload users How to bulk upload users The purpose of this document is to guide a user how to bulk upload learners and tutors onto SmartScreen. 2014 City and Guilds of London Institute.

More information

Identifying Updated Metadata and Images from a Content Provider

Identifying Updated Metadata and Images from a Content Provider University of Iowa Libraries Staff Publications 4-8-2010 Identifying Updated Metadata and Images from a Content Provider Wendy Robertson University of Iowa 2010 Wendy C Robertson Comments Includes presenter's

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

Programming Project 5: NYPD Motor Vehicle Collisions Analysis

Programming Project 5: NYPD Motor Vehicle Collisions Analysis : NYPD Motor Vehicle Collisions Analysis Due date: Dec. 7, 11:55PM EST. You may discuss any of the assignments with your classmates and tutors (or anyone else) but all work for all assignments must be

More information

The Professional Services Of Dojo Technology. Spreadsheet Files

The Professional Services Of Dojo Technology. Spreadsheet Files The Professional Services Of Dojo Technology Spreadsheet Files File Conversion Solutions This document serves as an opportunity to introduce the custom solutions that have been developed by Dojo for processing

More information

Aligned Elements Importer V user manual. Aligned AG Tellstrasse Zürich Phone: +41 (0)

Aligned Elements Importer V user manual. Aligned AG Tellstrasse Zürich Phone: +41 (0) Aligned Elements Importer V2.4.211.14302 user manual Aligned AG Tellstrasse 13 8004 Zürich Phone: +41 (0)44 312 50 20 www.aligned.ch info@aligned.ch Table of Contents 1.1 Introduction...3 1.2 Installation...3

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

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

Working with Variables: Primary Document Families

Working with Variables: Primary Document Families WORKING WITH VARIABLES: PRIMARY DOCUMENT FAMILIES 245 Working with Variables: Primary Document Families PD families as variables can be used in queries and SPSS jobs. Use PD-Family tables to assign PDs

More information

Using Maps with the JSON LIBNAME Engine in SAS Andrew Gannon, The Financial Risk Group, Cary NC

Using Maps with the JSON LIBNAME Engine in SAS Andrew Gannon, The Financial Risk Group, Cary NC Paper 1734-2018 Using Maps with the JSON LIBNAME Engine in SAS Andrew Gannon, The Financial Risk Group, Cary NC ABSTRACT This paper serves as an introduction to reading JSON data via the JSON LIBNAME engine

More information

This Text file. Importing Non-Standard Text Files using and / Operators.

This Text file. Importing Non-Standard Text Files using and / Operators. Paper CC45 @/@@ This Text file. Importing Non-Standard Text Files using @,@@ and / Operators. Russell Woods, Wells Fargo Home Mortgage, Fort Mill SC ABSTRACT SAS in recent years has done a fantastic job

More information

CSV Roll Documentation

CSV Roll Documentation CSV Roll Documentation Version 1.1 March 2015 INTRODUCTION The CSV Roll is designed to display the contents of a Microsoft Excel worksheet in a Breeze playlist. The Excel worksheet must be exported as

More information

Mobile Forms Integrator

Mobile Forms Integrator Mobile Forms Integrator Introduction Mobile Forms Integrator allows you to connect the ProntoForms service (www.prontoforms.com) with your accounting or management software. If your system can import a

More information

The import option allows you to import from 4 different source files.

The import option allows you to import from 4 different source files. Importing Data Importing Data - Overview The import option is located in the File menu. The import option provides an alternative method of getting your employees, employee's dependents, and if you used

More information

Employee User s Guide

Employee User s Guide User Guide 1 12612 Challenger Parkway Suite 300 Orlando, FL 32826 www.ivisitor.com Employee User s Guide INTRODUCTION The instructions and information contained in this document outline the steps necessary

More information

UC Export Folders Version 3.5 for Worksite 8.x, 9.x x86

UC Export Folders Version 3.5 for Worksite 8.x, 9.x x86 UC Export Folders Version 3.5 for Worksite 8.x, 9.x x86 Exports folders and subfolders directly from workspaces, tabs and folders Filter documents and email messages Integrated into Filesite and Desksite

More information

SPREADSHEETS. (Data for this tutorial at

SPREADSHEETS. (Data for this tutorial at SPREADSHEETS (Data for this tutorial at www.peteraldhous.com/data) Spreadsheets are great tools for sorting, filtering and running calculations on tables of data. Journalists who know the basics can interview

More information

NCSS Statistical Software. The Data Window

NCSS Statistical Software. The Data Window Chapter 103 Introduction This chapter discusses the operation of the NCSS Data Window, one of the four main windows of the NCSS statistical analysis system. The other three windows are the Output Window,

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

IT ACADEMY LESSON PLAN

IT ACADEMY LESSON PLAN IT Academy Program 10 IT ACADEMY LESSON PLAN Microsoft Excel Lesson 1 Turn potential into success Lesson 1: Understanding Microsoft Office Excel 2010 Learning Objectives Lesson Introduction Creating a

More information

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment.

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment. Beginning Access 2007 Objective 1: Familiarize yourself with basic database terms and definitions. What is a Database? A Database is simply defined as a collection of related groups of information. Things

More information

PCGENESIS PAYROLL SYSTEM OPERATIONS GUIDE

PCGENESIS PAYROLL SYSTEM OPERATIONS GUIDE PCGENESIS PAYROLL SYSTEM OPERATIONS GUIDE 1/25/2016 Section I: Special Functions [Topic 8B: Payroll Deduction Data Export and Import File Processing, V1.2] Revision History Date Version Description Author

More information

Instructor: Clara Knox. Reference:

Instructor: Clara Knox. Reference: Instructor: Clara Knox Reference: http://www.smith.edu/tara/cognos/documents/query_studio_users_guide.pdf Reporting tool for creating simple queries and reports in COGNOS 10.1, the web-base reporting solution.

More information

EXCEL BASICS: MICROSOFT OFFICE 2007

EXCEL BASICS: MICROSOFT OFFICE 2007 EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

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

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */ Overview Language Basics This chapter describes the basic elements of Rexx. It discusses the simple components that make up the language. These include script structure, elements of the language, operators,

More information

We will now go through these steps in more detail before beginning the actual import exercises.

We will now go through these steps in more detail before beginning the actual import exercises. Title: Employee Import Lab Introduction At first, the Employee Import process could seem overwhelming; however after going through these exercises hopefully this will no longer be the case. The easiest

More information

HOW TO EXPORT BUYER NAMES & ADDRESSES FROM PAYPAL TO A CSV FILE

HOW TO EXPORT BUYER NAMES & ADDRESSES FROM PAYPAL TO A CSV FILE HOW TO EXPORT BUYER NAMES & ADDRESSES FROM PAYPAL TO A CSV FILE If your buyers use PayPal to pay for their purchases, you can quickly export all names and addresses to a type of spreadsheet known as a

More information