Paper Creating SAS Datasets from Varied Sources Mansi Singh and Sofia Shamas, MaxisIT Inc, NJ
|
|
|
- Meredith Williams
- 9 years ago
- Views:
Transcription
1 Paper Creating SAS Datasets from Varied Sources Mansi Singh and Sofia Shamas, MaxisIT Inc, NJ ABSTRACT Often SAS programmers find themselves dealing with data coming from multiple sources and usually in different formats. Steps have to be taken to logically relate the process and convert the variety of data into SAS data sets before it can be analyzed. Since these sources do not follow a similar pattern, this paper is to serve as a collection of examples illustrating the conversion of data coming from various sources, such as extensible markup language (XML), comma separated values (CSV), Microsoft excel (XLS), or tab delimited (TXT) files to SAS data sets. INTRODUCTION Often data comes from a variety of sources. These different formats of data have to be put together in a cohesive way so that it can be used for further analysis. Often this responsibility falls on the shoulders of a programmer. Every programmer has their own unique way to programming and tackling this issue. The optimal way depends upon the needs of the project and programmer's preference. There are various tools at our disposal such as IMPORT procedure, IMPORT WIZARD, and the DATA STEP which help programmers convert data coming from different sources to SAS data sets. Although these are very useful and widely used tools, these methods come with some limitations. PROC IMPORT gives no control over the field attributes as it scans the input file to automatically determine name, type and ideal length of the variables. DATA STEP INFILE can be more programming-intensive if there are more variables in the data set. DATA STEP INFILE even though being a more primitive approach, increases a programmer s control over the data. It allows programmer to be precise in variable definitions by specifying variable names and their attributes as the file is read through the INPUT statement. One can also do data manipulations directly within the same DATA STEP, which cannot be done using PROC IMPORT. CDISC procedure is used for XML files based on ODM structure which gives user more control over the metadata content. In this paper, DATA STEP - INFILE method will be used to convert,. Comma Separated Value (CSV) file to SAS data set.. Tab delimited (TXT) file to SAS data set.. Microsoft Excel (XLS) file to SAS data set. PROC CDISC will be used to convert,. extensible Markup Language (XML) file for ODM structure to SAS data set. SASHELP.SHOES is used as the data source to illustrate these conversions. CONVERTING CSV FILE TO SAS DATA SET Comma Separated Values (CSV) file is used to store tabular data in which numbers and text are stored in plain-text form. Plain text in such files is delimited by a symbol (comma). Traditionally, lines in the text file represent rows in a table, and commas separate the columns. CSV files are a common medium of data transfer especially when dealing with external vendors. The code used to create the SAS data set will be split into three main steps. And as we go along, main features of the code are explained. Let s take a look at the CSV file SHOES.CSV as an example, which will be later converted to a SAS data set.
2 STEP I: CREATE THE VARIABLE NAMES Programmers are familiar with the way traditional DATA STEP and INFILE is used to read external files. Even though DATA STEP gives more control to the programmer when reading the data into SAS, it can be a tedious job to type all the variable names, particularly if the data contains a lot of variables. This part of the code illustrates an innovative way of reading and creating variable names for a data set. *Creating dataset with variable names from csv file; data all_attb; infile "&path\shoes.csv" pad firstobs= obs= lrecl=767; *Reading in the line containing variable names; length randstr $500.; *Storing variable names as one random string; randstr $char500.; *Creating variables needed in the dataset; array a{*} $50. a-a7; do i= to dim(a); a{i}=scan(randstr,i,','); The INFILE statement reads in the CSV file. Row line where the variable names are stored within the file is read through FIRSTOBS option. A character variable, RANDSTR is created that will contain the variable names as one long string separated by the file delimiter, which in this case is a comma (, ). ARRAY is used to create the number of variables that will be in the data set. In this example, there are seven variables, so the ARRAY dimension ranges from 7. SCAN function is used to read the string created in step. It scans for each variable that was stored in the character string separated by the delimiter and then creates individual variables. Here seven different variable names are being created. STEP II: MACRO VARIABLES THAT STORE THE INFORMATION FOR INPUT AND ATTRIB STATEMENTS So now we need to define the attributes for the variable names created in STEP I. It can again be tiresome to type all the variable names and its attributes. This part of the code demonstrates how this can be achieved in a more efficient way. *Creating the strings for INPUT & ATTRIB statements; data _null_; set all_attb; length inpt attb $000. label $5.; array a{*} $50. a-a7; do i= to dim(a);
3 *Creating the string for INPUT and ATTRIB statements; *For character variables; if i^= then do; inpt=trim(inpt) ' ' trim(a{i}) ' $ '; var=a{i}; length='length=$5.'; if i= then label='label="region" '; else if i= then label='label="product" '; else if i= then label='label="subsidiary" '; else if i=5 then label='label="total Sales" '; else if i=6 then label='label="total Inventory" '; else if i=7 then label='label="total Returns" '; attb=trim(attb) ' ' trim(var) ' ' trim(length) ' ' trim(label); *For numeric variables; else do; inpt=trim(inpt) ' ' trim(a{i}) ' '; var=a{i}; length='length=8.'; if i= then label='label="number of Stores" '; attb=trim(attb) ' ' trim(var) ' ' trim(length) ' ' trim(label); call symput("inpt", trim(inpt)); call symput("attb", trim(attb)); Creates the string of variable names for the INPUT statement along with the type identifier ($) for character variables in the data set. For each variable defined by the ARRAY, a variable containing the length information and a variable containing the label information is created using IF-ELSE logic. These variables are then concatenated together to create the information needed for the ATTRIB statement. The logic used in and is then repeated for numeric type variables. The variables created for the INPUT and ATTRIB statements are then converted into macro variables. These macro variables (INPT and ATTB) will be used in the next step. STEP III: READ IN DATA FROM CSV FILE This part of the code uses all the information and variables created in STEP I and STEP II to read in the data. *Read in all the data from csv file; data shoes; infile "&path\shoes.csv" delimiter=',' pad missover firstobs= lrecl=767; attrib &attb; input &inpt; This INFILE statement will now read in the data from the CSV file. FIRSTOBS option points to the row line where the data exists. The macro variables (INPT and ATTB) created in the previous step are now used for INPUT and ATTRIB statements to create the final SAS data set.
4 CONVERTING TXT FILE TO SAS DATA SET A tab delimited (TXT) file is a plain text file which uses a tab stop as a separator between the data fields. Each line of the text file is a record of the data table. TXT is a widely supported file format which is often used to move data between various sources. The code used to create the SAS data set will be split into three main steps. And as we go along, main features of the code are explained. Let s take a look at the TXT file SHOES.TXT as an example, which will be later converted to a SAS data set. STEP I: CREATE THE VARIABLE NAMES This step is similar to STEP I of the CSV file conversion process. The only difference is when the delimiter for TXT file is defined. *Creating dataset with variable names from txt file; data all_attb; infile "&path\shoes.txt" dsd firstobs= obs= lrecl=767;... *Creating variables needed in the dataset; array a{*} $50. a-a7; do i= to dim(a); a{i}=scan(randstr,i,'09'x); The INFILE statement reads in the TXT file. Row line where the variable names are stored within the file is read through FIRSTOBS option. SCAN function is used to read the string created in previous steps. It scans for each variable that was stored in the character string separated by the delimiter (TAB). STEP II: MACRO VARIABLES THAT STORE THE INFORMATION FOR INPUT AND ATTRIB STATEMENTS This step is similar to STEP II of the CSV file conversion process. STEP III: READ IN DATA FROM TXT FILE This part of the code uses all the information and variables created in STEP I and STEP II to read in the data. *Read in all the data from txt file; data shoes; infile "&path\shoes.txt" delimiter='09'x dsd missover firstobs= lrecl=767; attrib &attb; input &inpt;
5 This INFILE statement will now read in the data from the TXT file. FIRSTOBS option points to the row line where the data exists. The macro variables (INPT and ATTB) created in the previous step are now used for INPUT and ATTRIB statements to create the final SAS data set. CONVERTING XLS FILE TO SAS DATA SET Microsoft Excel (XLS) file is a plain text file which uses a tab stop as a separator between the data fields. XLS is regularly available application for capturing and transmitting data. The XML format of XLS files are not used in this paper for example purposes. The code used to create the SAS data set will be split into three main steps. And as we go along, main features of the code are explained. Let s take a look at the XLS file SHOES.XLS as an example, which will be later converted to a SAS data set. STEP I: CREATE THE VARIABLE NAMES The overall method is similar to STEP I of the CSV file conversion process. But additional steps need to be taken for XLS files, to read in the variable names correctly. Another difference is when the delimiter for XLS file is defined. *Creating dataset with variable names from xls file; options noxwait noxsync; x "start excel"; filename runxls dde 'excel system'; data _null_; file runxls; put '[file-open("location\shoes.xls")]'; *Creating xls file reference; filename dbxls dde "excel location\shoes.xls!shoes" notab; data all_attb; infile dbxls dsd pad dlm='09'x missover firstobs= obs= lrecl=767; *Reading in the line containing variable names; length randstr $00.; *Storing variable names as one random string; input randstr $00.; *Creating variables needed in the dataset; array a{*} $50. a-a7; do i= to dim(a); a{i}=scan(randstr,i,'09'x); 5 6 5
6 . 5 6 X command will open a DOS command window without closing the current SAS session to start an excel session. FILENAME statement using DDE option will create a file reference to start excel. PUT statement along with DATA _NULL_ will open SHOES.XLS. The FILENAME statement along with DDE option will create a file reference for SHOES.XLS. INFILE statement reads in the XLS file. Row line where the variable names are stored within the file is read through FIRSTOBS option. A character variable, RANDSTR is created that will contain the variable names as one long string separated by the file delimiter, which in this case is tab stop (TAB). ARRAY is used to create the number of variables that will be in the data set. In this example, there are seven variables, so the ARRAY dimension ranges from 7. SCAN function is used to read the string created in step. It scans for each variable that was stored in the character string separated by the delimiter and creates individual variables. Here seven different variable names are being created. STEP II: MACRO VARIABLES THAT STORE THE INFORMATION FOR INPUT AND ATTRIB STATEMENTS This step is similar to STEP II of the CSV file conversion process. STEP III: READ IN DATA FROM XLS FILE This part of the code uses all the information and variables created in STEP I and STEP II to read in the data. *Read in all the data from xls file; data shoes; infile dbxls dsd pad dlm='09'x missover firstobs= lrecl=767; attrib &attb; input &inpt; This INFILE statement will now read in the data from the XLS file. FIRSTOBS option points to the row line where the data exists. The macro variables (INPT and ATTB) created in the previous step are now used for INPUT and ATTRIB statements to create the final SAS data set. CONVERTING XML FILE TO SAS DATA SET extensible Markup Language (XML) file is a tag based language. XML files are gaining popularity as a medium of data exchange between dissimilar platforms. XML files are designed to just store and transport information, and are not used for any kind of data manipulation. Transferring data from XML file requires identifying the primary keys and the data set variable names in order to create a SAS data set. If XML file has an arbitrary structure (not ODM) then XML MAP is needed in the LIBNAME reference. PROC CDISC may not work for such files. In this paper, XML file based on ODM structure is used as an example. Let s take a look at the XML file SHOES.XML as an example, which will later be converted to a SAS data set using PROC CDISC. 6
7 Here, PROC CDISC is used to produce a SAS data set from XML file. It creates columns in the data set and formats them according to the attributes defined in the ODM metadata. Main features of the code are explained. *Using PROC CDSIC to get data from XML file; filename xmlinput "location\shoes.xml"; libname fmtlib "location"; libname outlib "location"; proc cdisc model =odm read =xmlinput formatactive =yes formatnoreplace=no formatlibrary =fmtlib; odm odmversion ="." odmminimumkeyset=no longnames =yes; clinicaldata out =outlib.outdata name='shoes'; The FILENAME statement assigns the file reference to the physical location of the XML file. LIBNAME statement defines the location of the format library and the location where the final output data set will be stored. MODEL parameter describes the name of the supported CDISC model (ODM). The location of source XML file is specified with READ parameter, specified earlier within the FILENAME statement. FORMAT parameters define the formats associated with the variables. ODMVERSION parameter within PROC CDISC defines the version of the ODM model. The current version supported is.. ODMMINIMUMKEYSET=NO imports all KEYSET fields in the SAS data set. LONGNAMES=YES enables the variable names to be characters long, and the blanks with be replaced with an underscore (_). OUT parameter within CLINICALDATA specifies the name of the final SAS data set that is being created. CONCLUSION One of the fundamental strength of SAS is the ability to convert raw data into analytical information that can be used for further analysis. SAS has the flexibility to read data from practically any format. But receiving data from different sources and often combining them together can sometimes be a time consuming process. This tedious process can be made simple using some of the above mentioned examples, which in turn can save a significant amount of time; help automate part of the process thereby reducing the likelihood of errors. 7
8 REFERENCES SAS Online Docs. Diane Hall. Using an Excel Spreadsheet with PC SAS, no Gymnastics Required!. Gary McQuown. PROC IMPORT with a Twist. Elena Valkanova. Exploring SAS PROC CDISC Model=ODM and Its Limitations. Miriam Cisternas. Ricardo Cisternas. Reading and Writing XML files from SAS. ACKNOWLEDGEMENT Our gratitude goes to Carey Smoak and Mario Widel at Roche Molecular Diagnostics for providing us with invaluable comments regarding this paper. CONTACT INFORMATION Your comments and questions are highly valued and encouraged. Contact the authors at: Mansi Singh Sofia Shamas MaxisIT Inc. MaxisIT Inc. 0 Main Street 0 Main Street Metuchen, NJ 0880 Metuchen, NJ 0880 [email protected] [email protected] TRADEMARKS SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies. 8
A Macro to Create Data Definition Documents
A Macro to Create Data Definition Documents Aileen L. Yam, sanofi-aventis Inc., Bridgewater, NJ ABSTRACT Data Definition documents are one of the requirements for NDA submissions. This paper contains a
Using DDE and SAS/Macro for Automated Excel Report Consolidation and Generation
Using DDE and SAS/Macro for Automated Excel Report Consolidation and Generation Mengxi Li, Sandra Archer, Russell Denslow Sodexho Campus Services, Orlando, FL Abstract Each week, the Sodexho Campus Services
Using SAS DDE to Control Excel
Using SAS DDE to Control Excel George Zhu Alberta Health, Government of Alberta Edmonton SAS User Group Meeting April 15, 2015 1 DDE: Dynamic Data Exchange 2 Examples and Demonstration Demo 1: Import password
Importing Excel Files Into SAS Using DDE Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA
Importing Excel Files Into SAS Using DDE Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA ABSTRACT With the popularity of Excel files, the SAS user could use an easy way to get Excel files
Reading Delimited Text Files into SAS 9 TS-673
Reading Delimited Text Files into SAS 9 TS-673 Reading Delimited Text Files into SAS 9 i Reading Delimited Text Files into SAS 9 Table of Contents Introduction... 1 Options Available for Reading Delimited
Technical Paper. Reading Delimited Text Files into SAS 9
Technical Paper Reading Delimited Text Files into SAS 9 Release Information Content Version: 1.1July 2015 (This paper replaces TS-673 released in 2009.) Trademarks and Patents SAS Institute Inc., SAS Campus
ABSTRACT INTRODUCTION SAS AND EXCEL CAPABILITIES SAS AND EXCEL STRUCTURES
Paper 85-2010 Choosing the Right Tool from Your SAS and Microsoft Excel Tool Belt Steven First and Jennifer First, Systems Seminar Consultants, Madison, Wisconsin ABSTRACT There are over a dozen ways to
EXST SAS Lab Lab #4: Data input and dataset modifications
EXST SAS Lab Lab #4: Data input and dataset modifications Objectives 1. Import an EXCEL dataset. 2. Infile an external dataset (CSV file) 3. Concatenate two datasets into one 4. The PLOT statement will
Importing Data into SAS
1 SAS is a commonly used statistical program utilized for a variety of analyses. SAS supports many types of files as input and the following tutorial will cover some of the most popular. SAS Libraries:
Combining SAS LIBNAME and VBA Macro to Import Excel file in an Intriguing, Efficient way Ajay Gupta, PPD Inc, Morrisville, NC
ABSTRACT PharmaSUG 2013 - Paper CC11 Combining SAS LIBNAME and VBA Macro to Import Excel file in an Intriguing, Efficient way Ajay Gupta, PPD Inc, Morrisville, NC There are different methods such PROC
SUGI 29 Coders' Corner
Paper 074-29 Tales from the Help Desk: Solutions for Simple SAS Mistakes Bruce Gilsen, Federal Reserve Board INTRODUCTION In 19 years as a SAS consultant at the Federal Reserve Board, I have seen SAS users
How To Write A Clinical Trial In Sas
PharmaSUG2013 Paper AD11 Let SAS Set Up and Track Your Project Tom Santopoli, Octagon, now part of Accenture Wayne Zhong, Octagon, now part of Accenture ABSTRACT When managing the programming activities
Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA
Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA ABSTRACT PROC EXPORT, LIBNAME, DDE or excelxp tagset? Many techniques exist to create an excel file using SAS.
ABSTRACT INTRODUCTION FILE IMPORT WIZARD
SAS System Generates Code for You while Using Import/Export Procedure Anjan Matlapudi and J. Daniel Knapp Pharmacy Informatics, PerformRx, The Next Generation PBM, 200 Stevens Drive, Philadelphia, PA 19113
Preparing your data for analysis using SAS. Landon Sego 24 April 2003 Department of Statistics UW-Madison
Preparing your data for analysis using SAS Landon Sego 24 April 2003 Department of Statistics UW-Madison Assumptions That you have used SAS at least a few times. It doesn t matter whether you run SAS in
Create an Excel report using SAS : A comparison of the different techniques
Create an Excel report using SAS : A comparison of the different techniques Romain Miralles, Clinovo, Sunnyvale, CA Global SAS Forum 2011 April 2011 1 1. ABSTRACT Many techniques exist to create an Excel
Methodologies for Converting Microsoft Excel Spreadsheets to SAS datasets
Methodologies for Converting Microsoft Excel Spreadsheets to SAS datasets Karin LaPann ViroPharma Incorporated ABSTRACT Much functionality has been added to the SAS to Excel procedures in SAS version 9.
Importing Excel File using Microsoft Access in SAS Ajay Gupta, PPD Inc, Morrisville, NC
ABSTRACT PharmaSUG 2012 - Paper CC07 Importing Excel File using Microsoft Access in SAS Ajay Gupta, PPD Inc, Morrisville, NC In Pharmaceuticals/CRO industries, Excel files are widely use for data storage.
A Recursive SAS Macro to Automate Importing Multiple Excel Worksheets into SAS Data Sets
PharmaSUG2011 - Paper CC10 A Recursive SAS Macro to Automate Importing Multiple Excel Worksheets into SAS Data Sets Wenyu Hu, Merck Sharp & Dohme Corp., Upper Gwynedd, PA Liping Zhang, Merck Sharp & Dohme
AN ANIMATED GUIDE: SENDING SAS FILE TO EXCEL
Paper CC01 AN ANIMATED GUIDE: SENDING SAS FILE TO EXCEL Russ Lavery, Contractor for K&L Consulting Services, King of Prussia, U.S.A. ABSTRACT The primary purpose of this paper is to provide a generic DDE
EXTRACTING DATA FROM PDF FILES
Paper SER10_05 EXTRACTING DATA FROM PDF FILES Nat Wooding, Dominion Virginia Power, Richmond, Virginia ABSTRACT The Adobe Portable Document File (PDF) format has become a popular means of producing documents
Automated distribution of SAS results Jacques Pagé, Les Services Conseils HARDY, Quebec, Qc
Paper 039-29 Automated distribution of SAS results Jacques Pagé, Les Services Conseils HARDY, Quebec, Qc ABSTRACT This paper highlights the programmable aspects of SAS results distribution using electronic
SPSS for Windows importing and exporting data
Guide 86 Version 3.0 SPSS for Windows importing and exporting data This document outlines the procedures to follow if you want to transfer data from a Windows application like Word 2002 (Office XP), Excel
Listings and Patient Summaries in Excel (SAS and Excel, an excellent partnership)
Paper TS01 Listings and Patient Summaries in Excel (SAS and Excel, an excellent partnership) Xavier Passera, Detour Solutions Ltd., United Kingdom ABSTRACT The purpose of this paper is to explain how SAS
Customized Excel Output Using the Excel Libname Harry Droogendyk, Stratia Consulting Inc., Lynden, ON
Paper SIB-105 Customized Excel Output Using the Excel Libname Harry Droogendyk, Stratia Consulting Inc., Lynden, ON ABSTRACT The advent of the ODS ExcelXP tagset and its many features has afforded the
Data Presentation. Paper 126-27. Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs
Paper 126-27 Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs Tugluke Abdurazak Abt Associates Inc. 1110 Vermont Avenue N.W. Suite 610 Washington D.C. 20005-3522
Downloading Your Financial Statements to Excel
Downloading Your Financial Statements to Excel Downloading Data from CU*BASE to PC INTRODUCTION How can I get my favorite financial statement from CU*BASE into my Excel worksheet? How can I get this data
SAS and Microsoft Excel for Tracking and Managing Clinical Trial Data: Methods and Applications for Information Delivery
Paper TT15 SAS and Microsoft Excel for Tracking and Managing Clinical Trial Data: Methods and Applications for Information Delivery Na Li, Pharmacyclics, Sunnyvale, CA Kathy Boussina, Pharmacyclics, Sunnyvale,
A Scheme for Automation of Telecom Data Processing for Business Application
A Scheme for Automation of Telecom Data Processing for Business Application 1 T.R.Gopalakrishnan Nair, 2 Vithal. J. Sampagar, 3 Suma V, 4 Ezhilarasan Maharajan 1, 3 Research and Industry Incubation Center,
A Method for Cleaning Clinical Trial Analysis Data Sets
A Method for Cleaning Clinical Trial Analysis Data Sets Carol R. Vaughn, Bridgewater Crossings, NJ ABSTRACT This paper presents a method for using SAS software to search SAS programs in selected directories
OneTouch 4.0 with OmniPage OCR Features. Mini Guide
OneTouch 4.0 with OmniPage OCR Features Mini Guide The OneTouch 4.0 software you received with your Visioneer scanner now includes new OmniPage Optical Character Recognition (OCR) features. This brief
SAS Office Analytics: An Application In Practice
PharmaSUG 2016 - Paper AD19 SAS Office Analytics: An Application In Practice Monitoring and Ad-Hoc Reporting Using Stored Process Mansi Singh, Roche Molecular Systems Inc., Pleasanton, CA Smitha Krishnamurthy,
ABSTRACT INTRODUCTION THE MAPPING FILE GENERAL INFORMATION
An Excel Framework to Convert Clinical Data to CDISC SDTM Leveraging SAS Technology Ale Gicqueau, Clinovo, Sunnyvale, CA Marc Desgrousilliers, Clinovo, Sunnyvale, CA ABSTRACT CDISC SDTM data is the standard
Create Your Customized Case Report Form (CRF) Tracking System Tikiri Karunasundera, Medpace Inc., Cincinnati, Ohio
Paper AD15 Create Your Customized Case eport Form (CF) Tracking System Tikiri Karunasundera, Medpace Inc., Cincinnati, Ohio Abstract: A case report form (CF) tracking system helps ensure all required CFs
R FOR SAS AND SPSS USERS. Bob Muenchen
R FOR SAS AND SPSS USERS Bob Muenchen I thank the many R developers for providing such wonderful tools for free and all the r help participants who have kindly answered so many questions. I'm especially
Music to My Ears: Using SAS to Deal with External Files (and My ipod)
Paper SD10 Music to My Ears: Using SAS to Deal with External Files (and My ipod) Sean Hunt, Quality Insights of Pennsylvania, Pittsburgh, PA ABSTRACT Working with multiple external data files usually presents
Importing from Tab-Delimited Files
January 25, 2012 Importing from Tab-Delimited Files Tab-delimited text files are an easy way to import metadata for multiple files. (For more general information about using and troubleshooting tab-delimited
Encoding the Password
SESUG 2012 Paper CT-28 Encoding the Password A low maintenance way to secure your data access Leanne Tang, National Agriculture Statistics Services USDA, Washington DC ABSTRACT When users access data in
Converting Excel Spreadsheets or Comma Separated Values files into Database File or Geodatabases for use in the USGS Metadata Wizard
Converting Excel Spreadsheets or Comma Separated Values files into Database File or Geodatabases for use in the USGS Metadata Wizard The USGS Metadata Wizard does not ingest native Excel (.xlsx) or CSV
B) Mean Function: This function returns the arithmetic mean (average) and ignores the missing value. E.G: Var=MEAN (var1, var2, var3 varn);
SAS-INTERVIEW QUESTIONS 1. What SAS statements would you code to read an external raw data file to a DATA step? Ans: Infile and Input statements are used to read external raw data file to a Data Step.
An Overview of REDCap, a secure web-based application for Electronic Data Capture
PharmaSUG 2014 - Paper PO19 An Overview of REDCap, a secure web-based application for Electronic Data Capture Kevin Viel; inventiv Health Clinical and Histonis, Incorporated; Atlanta, GA ABSTRACT REDCap
There are various ways to find data using the Hennepin County GIS Open Data site:
Finding Data There are various ways to find data using the Hennepin County GIS Open Data site: Type in a subject or keyword in the search bar at the top of the page and press the Enter key or click the
Spelling Checker Utility in SAS using VBA Macro and SAS Functions Ajay Gupta, PPD, Morrisville, NC
PharmaSUG 2015 - Paper P017 Spelling Checker Utility in SAS using VBA Macro and SAS Functions Ajay Gupta, PPD, Morrisville, NC ABSTRACT In Pharmaceuticals/CRO industries, it is quite common to have typographical
PUT, DBLOAD AND ODE: Three Ways to Export Data to Excel and Why To Use Them
PUT, DBLOAD AND ODE: Three Ways to Export Data to Excel and Why To Use Them Doug Felton, Trilogy Consulting Corporation, Englewood, CO Frank Ferriola, Trilogy Consulting Corporation, Englewood, CO ABSTRACT
Creating Dynamic Reports Using Data Exchange to Excel
Creating Dynamic Reports Using Data Exchange to Excel Liping Huang Visiting Nurse Service of New York ABSTRACT The ability to generate flexible reports in Excel is in great demand. This paper illustrates
SAS/ACCESS 9.3 Interface to PC Files
SAS/ACCESS 9.3 Interface to PC Files Reference SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2011. SAS/ACCESS 9.3 Interface to Files: Reference.
PharmaSUG 2015 - Paper QT26
PharmaSUG 2015 - Paper QT26 Keyboard Macros - The most magical tool you may have never heard of - You will never program the same again (It's that amazing!) Steven Black, Agility-Clinical Inc., Carlsbad,
Instant Interactive SAS Log Window Analyzer
ABSTRACT Paper 10240-2016 Instant Interactive SAS Log Window Analyzer Palanisamy Mohan, ICON Clinical Research India Pvt Ltd Amarnath Vijayarangan, Emmes Services Pvt Ltd, India An interactive SAS environment
From The Little SAS Book, Fifth Edition. Full book available for purchase here.
From The Little SAS Book, Fifth Edition. Full book available for purchase here. Acknowledgments ix Introducing SAS Software About This Book xi What s New xiv x Chapter 1 Getting Started Using SAS Software
11.5 E-THESIS SUBMISSION PROCEDURE (RESEARCH DEGREES)
11.5 E-THESIS SUBMISSION PROCEDURE (RESEARCH DEGREES) 1 E-THESIS SUBMISSION PROCEDURE File format: E-Thesis - the following file formats will be accepted for deposit: Format Minimum version PDF 6.0 Microsoft
Import and Output XML Files with SAS Yi Zhao Merck Sharp & Dohme Corp, Upper Gwynedd, Pennsylvania
Paper TS06-2011 Import and Output XML Files with SAS Yi Zhao Merck Sharp & Dohme Corp, Upper Gwynedd, Pennsylvania Abstract XML files are widely used in transporting data from different operating systems
Importing Data from a Dat or Text File into SPSS
Importing Data from a Dat or Text File into SPSS 1. Select File Open Data (Using Text Wizard) 2. Under Files of type, choose Text (*.txt,*.dat) 3. Select the file you want to import. The dat or text file
Flat Pack Data: Converting and ZIPping SAS Data for Delivery
Flat Pack Data: Converting and ZIPping SAS Data for Delivery Sarah Woodruff, Westat, Rockville, MD ABSTRACT Clients or collaborators often need SAS data converted to a different format. Delivery or even
Creating Raw Data Files Using SAS. Transcript
Creating Raw Data Files Using SAS Transcript Creating Raw Data Files Using SAS Transcript was developed by Mike Kalt. Additional contributions were made by Michele Ensor, Mark Jordan, Kathy Passarella,
Using Microsoft Excel for Data Presentation Peter Godard and Cyndi Williamson, SRI International, Menlo Park, CA
Using Microsoft Excel for Data Presentation Peter Godard and Cyndi Williamson, SRI International, Menlo Park, CA ABSTRACT A common problem: You want to use SAS to manipulate and summarize your data, but
Importing and Exporting Databases in Oasis montaj
Importing and Exporting Databases in Oasis montaj Oasis montaj provides a variety of importing and exporting capabilities. This How-To Guide covers the basics of importing and exporting common file types.
File by OCR Manual. Updated December 9, 2008
File by OCR Manual Updated December 9, 2008 edocfile, Inc. 2709 Willow Oaks Drive Valrico, FL 33594 Phone 813-413-5599 Email [email protected] www.edocfile.com File by OCR Please note: This program is
How to easily convert clinical data to CDISC SDTM
How to easily convert clinical data to CDISC SDTM Ale Gicqueau, Clinovo, Sunnyvale, CA Miki Huang, Clinovo, Sunnyvale, CA Stephen Chan, Clinovo, Sunnyvale, CA INTRODUCTION Sponsors are receiving clinical
Data Export User Guide
Data Export User Guide Copyright 1998-2006, E-Z Data, Inc. All Rights Reserved. No part of this documentation may be copied, reproduced, or translated in any form without the prior written consent of E-Z
It s not the Yellow Brick Road but the SAS PC FILES SERVER will take you Down the LIBNAME PATH= to Using the 64-Bit Excel Workbooks.
Pharmasug 2014 - paper CC-47 It s not the Yellow Brick Road but the SAS PC FILES SERVER will take you Down the LIBNAME PATH= to Using the 64-Bit Excel Workbooks. ABSTRACT William E Benjamin Jr, Owl Computer
An email macro: Exploring metadata EG and user credentials in Linux to automate email notifications Jason Baucom, Ateb Inc.
SESUG 2012 Paper CT-02 An email macro: Exploring metadata EG and user credentials in Linux to automate email notifications Jason Baucom, Ateb Inc., Raleigh, NC ABSTRACT Enterprise Guide (EG) provides useful
Integrating SAS and Excel: an Overview and Comparison of Three Methods for Using SAS to Create and Access Data in Excel
Integrating SAS and Excel: an Overview and Comparison of Three Methods for Using SAS to Create and Access Data in Excel Nathan Clausen, U.S. Bureau of Labor Statistics, Washington, DC Edmond Cheng, U.S.
Tales from the Help Desk 3: More Solutions for Simple SAS Mistakes Bruce Gilsen, Federal Reserve Board
Tales from the Help Desk 3: More Solutions for Simple SAS Mistakes Bruce Gilsen, Federal Reserve Board INTRODUCTION In 20 years as a SAS consultant at the Federal Reserve Board, I have seen SAS users make
Qlik REST Connector Installation and User Guide
Qlik REST Connector Installation and User Guide Qlik REST Connector Version 1.0 Newton, Massachusetts, November 2015 Authored by QlikTech International AB Copyright QlikTech International AB 2015, All
Eliminating Tedium by Building Applications that Use SQL Generated SAS Code Segments
Eliminating Tedium by Building Applications that Use SQL Generated SAS Code Segments David A. Mabey, Reader s Digest Association Inc., Pleasantville, NY ABSTRACT When SAS applications are driven by data-generated
PO-18 Array, Hurray, Array; Consolidate or Expand Your Input Data Stream Using Arrays
Array, Hurray, Array; Consolidate or Expand Your Input Data Stream Using Arrays, continued SESUG 2012 PO-18 Array, Hurray, Array; Consolidate or Expand Your Input Data Stream Using Arrays William E Benjamin
SAS UNIX-Space Analyzer A handy tool for UNIX SAS Administrators Airaha Chelvakkanthan Manickam, Cognizant Technology Solutions, Teaneck, NJ
PharmaSUG 2012 Paper PO11 SAS UNIX-Space Analyzer A handy tool for UNIX SAS Administrators Airaha Chelvakkanthan Manickam, Cognizant Technology Solutions, Teaneck, NJ ABSTRACT: In the fast growing area
SAS Lesson 2: More Ways to Input Data
SAS Lesson 2: More Ways to Input Data In the previous lesson, the following statements were used to create a dataset. DATA oranges; INPUT state $ 1-10 early 12-14 late 16-18; DATALINES; Florida 130 90
DBF Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 7
97 CHAPTER 7 DBF Chapter Note to UNIX and OS/390 Users 97 Import/Export Facility 97 Understanding DBF Essentials 98 DBF Files 98 DBF File Naming Conventions 99 DBF File Data Types 99 ACCESS Procedure Data
CHAPTER 1 Overview of SAS/ACCESS Interface to Relational Databases
3 CHAPTER 1 Overview of SAS/ACCESS Interface to Relational Databases About This Document 3 Methods for Accessing Relational Database Data 4 Selecting a SAS/ACCESS Method 4 Methods for Accessing DBMS Tables
Automation of Large SAS Processes with Email and Text Message Notification Seva Kumar, JPMorgan Chase, Seattle, WA
Automation of Large SAS Processes with Email and Text Message Notification Seva Kumar, JPMorgan Chase, Seattle, WA ABSTRACT SAS includes powerful features in the Linux SAS server environment. While creating
5. Crea+ng SAS Datasets from external files. GIORGIO RUSSOLILLO - Cours de prépara+on à la cer+fica+on SAS «Base Programming»
5. Crea+ng SAS Datasets from external files 107 Crea+ng a SAS dataset from a raw data file 108 LIBNAME statement In most of cases, you may want to assign a libref to a certain folder (a SAS library) LIBNAME
Let There Be Highlights: Data-driven Cell, Row and Column Highlights in %TAB2HTM and %DS2HTM Output. Matthew Flynn and Ray Pass
Let There Be Highlights: Data-driven Cell, Row and Column Highlights in %TAB2HTM and %DS2HTM Output Matthew Flynn and Ray Pass Introduction Version 6.12 of the SAS System Technical Support supplied macros
PharmaSUG 2014 Paper CC23. Need to Review or Deliver Outputs on a Rolling Basis? Just Apply the Filter! Tom Santopoli, Accenture, Berwyn, PA
PharmaSUG 2014 Paper CC23 Need to Review or Deliver Outputs on a Rolling Basis? Just Apply the Filter! Tom Santopoli, Accenture, Berwyn, PA ABSTRACT Wouldn t it be nice if all of the outputs in a deliverable
Chapter 2 The Data Table. Chapter Table of Contents
Chapter 2 The Data Table Chapter Table of Contents Introduction... 21 Bringing in Data... 22 OpeningLocalFiles... 22 OpeningSASFiles... 27 UsingtheQueryWindow... 28 Modifying Tables... 31 Viewing and Editing
Dynamic Decision-Making Web Services Using SAS Stored Processes and SAS Business Rules Manager
Paper SAS1787-2015 Dynamic Decision-Making Web Services Using SAS Stored Processes and SAS Business Rules Manager Chris Upton and Lori Small, SAS Institute Inc. ABSTRACT With the latest release of SAS
Clinical Trial Data Integration: The Strategy, Benefits, and Logistics of Integrating Across a Compound
PharmaSUG 2014 - Paper AD21 Clinical Trial Data Integration: The Strategy, Benefits, and Logistics of Integrating Across a Compound ABSTRACT Natalie Reynolds, Eli Lilly and Company, Indianapolis, IN Keith
Opening a Database in Avery DesignPro 4.0 using ODBC
Opening a Database in Avery DesignPro 4.0 using ODBC What is ODBC? Why should you Open an External Database using ODBC? How to Open and Link a Database to a DesignPro 4.0 Project using ODBC Troubleshooting
Getting started with the Stata
Getting started with the Stata 1. Begin by going to a Columbia Computer Labs. 2. Getting started Your first Stata session. Begin by starting Stata on your computer. Using a PC: 1. Click on start menu 2.
How To Write A File System On A Microsoft Office 2.2.2 (Windows) (Windows 2.3) (For Windows 2) (Minorode) (Orchestra) (Powerpoint) (Xls) (
Remark Office OMR 8 Supported File Formats User s Guide Addendum Remark Products Group 301 Lindenwood Drive, Suite 100 Malvern, PA 19355-1772 USA www.gravic.com Disclaimer The information contained in
Mail Merge Creating Mailing Labels 3/23/2011
Creating Mailing Labels in Microsoft Word Address data in a Microsoft Excel file can be turned into mailing labels in Microsoft Word through a mail merge process. First, obtain or create an Excel spreadsheet
SOAL-SOAL MICROSOFT EXCEL 1. The box on the chart that contains the name of each individual record is called the. A. cell B. title C. axis D.
SOAL-SOAL MICROSOFT EXCEL 1. The box on the chart that contains the name of each individual record is called the. A. cell B. title C. axis D. legend 2. If you want all of the white cats grouped together
Paper FF-014. Tips for Moving to SAS Enterprise Guide on Unix Patricia Hettinger, Consultant, Oak Brook, IL
Paper FF-014 Tips for Moving to SAS Enterprise Guide on Unix Patricia Hettinger, Consultant, Oak Brook, IL ABSTRACT Many companies are moving to SAS Enterprise Guide, often with just a Unix server. A surprising
SAS Visual Analytics dashboard for pollution analysis
SAS Visual Analytics dashboard for pollution analysis Viraj Kumbhakarna VP Sr. Analytical Data Consultant MUFG Union Bank N.A., San Francisco, CA Baskar Anjappan, VP SAS Developer MUFG Union Bank N.A.,
Automate Data Integration Processes for Pharmaceutical Data Warehouse
Paper AD01 Automate Data Integration Processes for Pharmaceutical Data Warehouse Sandy Lei, Johnson & Johnson Pharmaceutical Research and Development, L.L.C, Titusville, NJ Kwang-Shi Shu, Johnson & Johnson
Search help. More on Office.com: images templates
Page 1 of 14 Access 2010 Home > Access 2010 Help and How-to > Getting started Search help More on Office.com: images templates Access 2010: database tasks Here are some basic database tasks that you can
DocuSign Quick Start Guide. Using the Bulk Recipient Feature. Overview. Table of Contents
DocuSign Quick Start Guide Using the Bulk Recipient Feature Overview There might be situations that require a sender to send the same document to a large number of recipients. A typical example is an updated
Mail 2 ZOS FTPSweeper
Mail 2 ZOS FTPSweeper z/os or OS/390 Release 1.0 February 12, 2006 Copyright and Ownership: Mail2ZOS and FTPSweeper are proprietary products to be used only according to the terms and conditions of sale,
Programming Tricks For Reducing Storage And Work Space Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA.
Paper 23-27 Programming Tricks For Reducing Storage And Work Space Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA. ABSTRACT Have you ever had trouble getting a SAS job to complete, although
Taming the PROC TRANSPOSE
Taming the PROC TRANSPOSE Matt Taylor, Carolina Analytical Consulting, LLC ABSTRACT The PROC TRANSPOSE is often misunderstood and seldom used. SAS users are unsure of the results it will give and curious
