Importing Excel Files Into SAS Using DDE Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA
|
|
|
- Alberta Bryan
- 10 years ago
- Views:
Transcription
1 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 into SAS. There are many good methods to do so, one of them being Dynamic Data Exchange (DDE). A SAS user can use DDE within SAS code to make importing an Excel file routine and easily repeatable. The author will show how he uses DDE within SAS to routinely import into SAS lookup tables downloaded from an ERP system as Excel files. The basic DDE statements needed to accomplish this are surprising simple. INTRODUCTION What in the world is DDE and why use it? Good question... DDE is Dynamic Data Exchange and is a method of accessing data from one MS-Windows application by another. As a SAS user, you can use DDE within a DATA step to import data into SAS and export data from SAS. Using DDE involves SAS code and statements that other MS-Windows applications understand. But, why bother with DDE when other methods are available? What about the IMPORT and EXPORT procedures? Or, Open Database Connectivity (ODBC)? How about SAS Enterprise Guide? These alternatives are useful under the right conditions. For example, the PROC IMPORT and PROC EXPORT are simple to use, but are limited in the way you can define your data and these procedures require you license SAS/ACCESS For PC Formats. Bummer. ODBC is also simple to use, but importing data into SAS using ODBC requires you license SAS/ACCESS For ODBC. Bummer again. And, the new Excel LIBNAME engine? Oh, that also requires you license SAS/ACCESS For PC Formats. Bummer times three. SAS Enterprise Guide is very simple, and does not require you license anything other than BASE SAS. Hmm. Oh yes, SAS Enterprise Guide doesn t offer quite the flexibility as DDE, because when using DDE you have all the features of the SAS DATA step. Also, using DDE in a SAS DATA step makes it easy to adapt the import process for repeatable uses. A SAS DATA step using DDE only requires BASE SAS running under MS-Windows. In my applications, I routinely download tables from an ERP system that likes to dump the data into an Excel file. Each time I download a fresh table of data into the Excel file, I want to re-run my SAS import process to create a fresh SAS table. I download several similar tables from the ERP system and like to use macro variables within my SAS code to import any one of the several Excel files downloaded from the ERP system. So, a DATA step using DDE works very well for my situation. Throughout the remainder of this paper I will describe only the process of importing Excel worksheets into a SAS data set, as the purpose of this paper is to provide a working introduction to the use of DDE to get Excel data into SAS. To that end, I will use a straightforward example. DDE BASICS Dynamic Data Exchange is a method to dynamically exchange data between MS-Windows applications. DDE uses a client-server relationship to enable client applications to request data from a server application. In the context of SAS and DDE, SAS is always the client, regardless of which application is receiving the data. SAS request data from server applications, sends data to server applications, or sends commands to server applications. DDE has many uses: the one that we will explore is acquiring data from another MS-Windows application, namely Excel. A search of the Microsoft web page for macrofun will reward you with the MS-W indows HLP file macrofun.hlp that will provide all of the wonderful Excel macro commands that you can use within the DDE statements. Although these macros are older technology, for use with DDE they get the job done. COMMUNICATION IS KEY To use DDE, both SAS (the client) and the application owning the data you wish to import (the server) must be running, and the data that is to be read must be open. Communication between two MS-Windows applications is accomplished using what is known as the DDE Triplet. The triplet requires three parameters, in the following form: 1
2 'application-name topic! item' where: application-name is the executable filename of the server application. For example, the application-name for Microsoft Excel is excel. topic is the subject of conversation (between SAS and the DDE server application). This is typically the full drive, path, and filename of the spreadsheet with which you want to share data. As Watts points out, only enough information for identifying a specific worksheet is actually required. For example, If a single workbook is opened on the desktop,"excel sheet1!..." will be enough to identify it. When specifying the entire Excel workbook and worksheet, you enclose the workbook name in brackets [ ]. item is the range of conversation specified between the client and server applications. When reading data from Excel, this will be a range of cells. Notice that the triplet is quoted, the application-name and topic are separated by a vertical bar, and the topic and item are separated by an exclamation mark!. There is an easy to use trick to determine the exact string for the DDE Triplet. Use Excel to copy the desired range of cells to the MS-Windows clipboard. Then, while in SAS for MS-Windows, use the pull-down menu option Solutions\Accessories\DDE triplet. You will see something like the following: You can then select the text, copy, and paste it into your SAS code. In my example the DDE Triplet looks like this: Excel C:\WUSS\[Names Workbook.xls]Names Worksheet!R1C1:R11C6 Microsoft defined the DDE topic SYSTEM to enable commands to be sent to the server application. When sending commands to a server application, we need only specify the application-name and the special DDE topic SYSTEM. Therefore, there is no need for an item parameter when only sending commands to Excel. Thus, the DDE triplet for sending commands to Excel contains only two parameters, with the application-name being set to EXCEL and the topic being set to SYSTEM. The functionality of this special two level DDE Triplet is different from the normal DDE Triplet: whereas the normal DDE Triplet opens a link to a specific cell-range in an Excel workbook/worksheet, the two-level triplet will allow SAS to send system-level commands to the server application (which in our discussion is Excel). IMPORTANT SYSTEM OPTIONS NOXSYNC The NOXSYNC instructs SAS to continue processing as soon as the operating system command is issued. NOXW AIT The NOXWAIT instructs SAS to automatically close the spawned prompt window after the specified command 2
3 has completed. Without this option, the command prompt window just won t close. IMPORTANT FILENAME/INFILE OPTIONS NOTAB The NOTAB option instructs SAS to ignore tab characters between variables. SAS expects to see a tab character placed between each variable that is sent across the DDE link when importing into SAS. Similarly, SAS places a tab character between variables when SAS sends data across the DDE link when exporting from SAS. When the NOTAB option is used, SAS accepts character delimiters other than tabs between variables and the NOTAB option tells SAS not to convert tabs sent from the Excel worksheet into blanks. Therefore, the tab character can be used as the delimiter between data values. DLM The DLM= option specifies the delimiter character, and '09'x is the hexadecimal representation of the tab character. MISSOVER The MISSOVER option prevents SAS from going to a new input line if it does not find values in the current line for all the INPUT statement variables, i.e. one or more cells are blank. W hen the MISSOVER option is used, if SAS encounters a blank cell then SAS sets the input value to missing, and continues to read until the expected end of the input line. DSD The DSD option specifies that two consecutive delimiters represent a missing value. The default delimiter is a comma. USING DDE TO READ EXCEL DATA Okay, we are ready to put some code together to read Excel data into a SAS DATA step. I m excited. The first step is to launch (invoke) Excel. INVOKE MICROSOFT EXCEL You can invoke Excel using the SAS X command. options noxwait noxsync; x '"c:\program files\microsoft office\office11\excel.exe"'; The path for Excel will differ depending on the version you are using and whether or not you installed Excel using the default destination. Searching the hard drive for excel.exe will pinpoint the proper location for the path. The entire x command must be enclosed in single quotes. If the path contains blanks, then the entire path must be enclosed in double quotes. You use the NOXWAIT and NOXSYNC options to ensure that the x command executes independently from the SAS session and the x command window closes. Obviously, if you enter the path or executable incorrectly, Excel will fail to launch. SAS must wait until Excel has completed loading itself before it can begin to exchange data. You cause SAS to wait for Excel to load by using a DATA _NULL_ step with the SLEEP function. How long does SAS need to sleep? That will depend on your computer - trial and error will help to determine the time value to use in the SLEEP function. A value larger than necessary will simply mean SAS will pause longer than necessary, which is not critical. 3
4 x=sleep(5); If you try to proceed with your DDE application before Excel finishes loading, you will get an error message in the SAS log that looks like the following: ERROR: Physical file does not exist, excel system. NOTE: The SAS System stopped processing this step because of errors. Once Excel is running we can define and then open our Excel workbook and worksheet. DEFINE AND OPEN A MICROSOFT EXCEL FILE You are now ready to tell SAS to open an existing Excel workbook. You start by creating a special fileref that will allow the DATA step to communicate with Excel via DDE. This is that two-level DDE Triplet. filename ddecmd dde 'excel system'; Here you define ddecmd as a fileref that signifies DDE Command (of course, the fileref can be any literal you want) and DDE is the SAS device-type keyword that tells SAS you want to use DDE. Next, you use a DATA _NULL_ step to pass to Excel via DDE the Excel macro command to open the desired Excel workbook. You link to the previous FILENAME statement using a FILE statement that references the previously defined fileref, ddecmd. Then, you issue a PUT statement to pass to the two-level DDE Triplet a string containing the Excel macro command FILE-OPEN and the literal drive\path\filename of the desired Excel workbook. file ddecmd; put '[FILE-OPEN("c:\wuss\names workbook.xls")]'; Note that the entire PUT string is in single quotes and the entire FILE-OPEN macro statement is enclosed in brackets [ ]. This will also work using the Excel macro OPEN, as seen below. file ddecmd; put '[OPEN("c:\wuss\names workbook.xls")]'; Running this DATA _NULL_ step will cause Excel to open the desired workbook. The results in the SAS log will look something like the following: NOTE: The file DDECMD is: DDE Session, SESSION=excel system,recfm=v,lrecl=256 NOTE: 1 record was written to the file DDECMD. The minimum record length was 41. The maximum record length was 41. If you enter the path or filename incorrectly, Excel will fail to open your workbook. You will get an error message in the SAS log that looks like the following: NOTE: The file DDECMD is: DDE Session, SESSION=excel system,recfm=v,lrecl=256 ERROR: DDE session not ready. 4
5 FATAL: Unrecoverable I/O error detected in the execution of the data step program. Aborted during the EXECUTION phase. NOTE: 0 records were written to the file DDECMD. NOTE: The SAS System stopped processing this step because of errors. Another unfortunate mistake you can make is to try to open your Excel workbook without first launching Excel. If you try that, you will see an error message in the SAS log that looks something like the following: ERROR: Physical file does not exist, excel system. NOTE: The SAS System stopped processing this step because of errors. If you try opening your Excel workbook with Excel successfully launched but without first establishing the DDE link with the FILENAME statement as shown above, then the SAS log won t reflect an error, but the Excel workbook won t open. Paul Choate suggests an alternate method for launching Excel and opening the desired Excel workbook: simply use %sysexec to launch the desired Excel workbook. %sysexec "c:\wuss\names workbook.xls"; As long as the xls extension is registered in MS-Windows to Excel, then MS-Windows will launch Excel and open the desired Excel workbook. You are now ready to define a SAS fileref to the range of cells within the Excel workbook and worksheet you wish to read data from. READ THE MICROSOFT EXCEL FILE INTO SAS Let s see what your Excel workbook/worksheet looks like. 5
6 Now that you have established an open DDE link to your open Excel workbook, you are ready to tell SAS just where within that workbook you want to read data. You do this with a FILENAME statement that uses the DDE Triplet. filename xlin DDE "excel c:\wuss\[names workbook.xls]names worksheet!r2c1:r65536c6"; Here you define xlin as a fileref that simply indicates Excel In (of course, the fileref can be any literal you want) and DDE is the SAS device-type keyword that tells SAS you want to use DDE. This statement includes the full DDE Triplet that defines Excel as the application-name, the c:\wuss\names workbook.xls, names worksheet workbook/worksheet as the topic, and the range of cells r2c1:r65536c6 as the item. Notice that of the full drive\path\filename, only the entire Excel workbook name is placed inside brackets [ ]. Notice the separation of the three parameters using the vertical bar and the exclamation mark!. Notice also that the item starts on row 2 to skip the column headings and ends with row (Excel s maximum number of rows - how did they decide on that number?). I have found that SAS won t create blank rows in the resulting SAS file when I define more rows in the item that contain data. So, I always set the range to the maximum. But, I set the columns to just those that contain data. W hy? Because when I download fresh data the structure will be the same, so I know the number of columns that will have data. But, the number of rows will vary each time I re-download the table. Running this FILENAME statement does not cause SAS to write anything interesting to the SAS log. Next, you can use the data you just defined from your Excel workbook in a DATA step. Simply use you favorite DATA step statements and options to create the perfect SAS data set from the Excel data. The only trick is to use the fileref you created in the above FILENAME statement to reference the Excel worksheet via DDE. There are some important options that may be necessary, as we discussed earlier. Notice on the INFILE statement that you may need to define the DLM=, NOTAB, MISSOVER, and DSD options to get SAS to read your Excel workbook the way you want. Other than that, the rest of the DATA step is composed of your favorite statements and options (the advance of using DDE). data wuss.employee(label='employee ROSTER' index=(emp_id)); infile xlin dlm='09'x notab missover dsd; informat FIRST $20. LAST $20. DEPT $4. EMP_ID $6. TITLE $30. RATE 8.2; input FIRST LAST DEPT EMP_ID TITLE RATE; format FIRST $20. LAST $20. DEPT $4. EMP_ID $6. TITLE $30. RATE 8.2; label FIRST = 'EMPLOYEE FIRST NAME' LAST = 'EMPLOYEE LAST NAME' DEPT = 'DEPARTMENT' EMP_ID = 'EMPLOYEE ID' TITLE = 'EMPLOYEE TITLE' RATE = 'PAY RATE'; After running the DATA step, SAS will write to the SAS log something like the following: NOTE: The infile XLIN is: DDE Session, SESSION=excel c:\wuss\[names workbook.xls]names worksheet!r2c1:r65536c6, RECFM=V,LRECL=256 NOTE: 794 records were read from the infile XLIN. The minimum record length was 23. The maximum record length was 58. NOTE: The data set WUSS.EMPLOYEE has 794 observations and 6 variables. If you mistype the drive\path\filename\worksheet name in the FILENAME statement, or if you don t open the workbook in Excel first, SAS will let you know with the following error in the SAS log: 6
7 ERROR: Physical file does not exist, excel c:\wuss\[names workbook1.xls]names worksheet!r2c1:r65536c6. NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WUSS.EMPLOYEE may be incomplete. When this step was stopped there were 0 observations and 6 variables. WARNING: Data set WUSS.EMPLOYEE was not replaced because this step was stopped. CLOSE THE EXCEL FILE Lastly, you may want to close the Excel workbook using the same method you used to open it, but with the FILE-CLOSE Excel macro. The DATA _NULL_ step below has an added bonus: the QUIT Excel macro will close Excel. file xlin; put '[FILE-CLOSE("c:\wuss\names workbook.xls")]'; put [QUIT()] ; THE COMPLETE PROGRAM Here s the complete code, suitable to copying and pasting to your favorite SAS session. /* set options and invoke Excel using DDE */ options noxwait noxsync; x '"c:\program files\microsoft office\office11\excel.exe"'; x=sleep(5); /* open Excel workbook */ filename ddecmd dde 'excel system'; file ddecmd; put '[FILE-OPEN("c:\wuss\names workbook.xls")]'; /* specify desired Excel worksheet cell range */ filename xlin DDE "excel c:\wuss\[names workbook.xls]names worksheet!r2c1:r65536c6"; /* read Excel files using DDE into SAS data set*/ data wuss.employee(label='employee ROSTER' index=(emp_id)); infile xlin dlm='09'x notab missover dsd; informat FIRST $20. LAST $20. DEPT $4. EMP_ID $6. TITLE $30. RATE 8.2; input FIRST LAST DEPT EMP_ID TITLE RATE; format FIRST $20. LAST $20. DEPT $4. EMP_ID $6. TITLE $30. RATE 8.2; label FIRST = 'EMPLOYEE FIRST NAME' LAST = 'EMPLOYEE LAST NAME' DEPT = 'DEPARTMENT' EMP_ID = 'EMPLOYEE ID' TITLE = 'EMPLOYEE TITLE' RATE = 'PAY RATE'; /* close Excel workbook and close Excel */ 7
8 file xlin; put '[FILE-CLOSE("c:\wuss\names workbook.xls")]'; put [QUIT()] ; CONCLUSION Don t let anyone tell you DDE is dead. It continues to do its job reading and writing data between MS-Windows applications. It is especially useful because we can use all the power of the SAS DATA step with DDE, and DDE requires we only have BASE SAS. REFERENCES SAS Institute Inc. SAS Companion For Windows. Cary, NC: SAS. SAS Institute Inc. SAS Institute Technical Support document TS325. Christopher A. Roper, Intelligently Launching Microsoft Excel from SAS, Using SCL Functions Ported to Base SAS. Proceedings of the Twenty-Fifth Annual SAS Users Group International Conference. RHA (Minisystems) Ltd. Dynamic Data Exchange (DDE) and NetDDE FAQ. UCLA Academic Technology Services SAS Library, Reading Data into SAS. Koen Vyverman Using Dynamic Data Exchange to Export Your SAS Data to MS Excel Against All ODS, Part I. Proceedings of the Twenty-Seventh Annual SAS Users Group International Conference. Perry Watts Using Single-Purpose SAS Macros to Format EXCEL Spreadsheets with DDE. Proceedings of the Thirtieth Annual SAS Users Group International Conference. SAS-L Posting, Paul Choate ACKNOWLEDGMENTS I appreciate all the fine technical support and advice from the sources listed above as well as the many fine posts on SAS-L. CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Curtis A,. Smith P.O. Box Fountain Valley, CA Fax: [email protected] 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 trademarks of their respective companies. 8
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
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.
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.
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
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
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
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
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
Introduction. Why Use ODBC? Setting Up an ODBC Data Source. Stat/Math - Getting Started Using ODBC with SAS and SPSS
Introduction Page 1 of 15 The Open Database Connectivity (ODBC) standard is a common application programming interface for accessing data files. In other words, ODBC allows you to move data back and forth
ACCESS 2007. Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818) 677-1700
Information Technology MS Access 2007 Users Guide ACCESS 2007 Importing and Exporting Data Files IT Training & Development (818) 677-1700 [email protected] TABLE OF CONTENTS Introduction... 1 Import Excel
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.
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
Importing and Exporting With SPSS for Windows 17 TUT 117
Information Systems Services Importing and Exporting With TUT 117 Version 2.0 (Nov 2009) Contents 1. Introduction... 3 1.1 Aim of this Document... 3 2. Importing Data from Other Sources... 3 2.1 Reading
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
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.
Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1
Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the SAI reports... 3 Running, Copying and Pasting reports... 4 Creating and linking a report... 5 Auto e-mailing reports...
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...
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
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
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
How to Create and Send a Froogle Data Feed
How to Create and Send a Froogle Data Feed Welcome to Froogle! The quickest way to get your products on Froogle is to send a data feed. A data feed is a file that contains a listing of your products. Froogle
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
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
Create a New Database in Access 2010
Create a New Database in Access 2010 Table of Contents OVERVIEW... 1 CREATING A DATABASE... 1 ADDING TO A DATABASE... 2 CREATE A DATABASE BY USING A TEMPLATE... 2 CREATE A DATABASE WITHOUT USING A TEMPLATE...
Overview. NT Event Log. CHAPTER 8 Enhancements for SAS Users under Windows NT
177 CHAPTER 8 Enhancements for SAS Users under Windows NT Overview 177 NT Event Log 177 Sending Messages to the NT Event Log Using a User-Written Function 178 Examples of Using the User-Written Function
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
Advanced Excel 10/20/2011 1
Advanced Excel Data Validation Excel has a feature called Data Validation, which will allow you to control what kind of information is typed into cells. 1. Select the cell(s) you wish to control. 2. Click
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
SAS 9.4 PC Files Server
SAS 9.4 PC Files Server Installation and Configuration Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. SAS 9.4 PC Files Server: Installation
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,
Tips and Tricks SAGE ACCPAC INTELLIGENCE
Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,
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
Rapid Assessment Key User Manual
Rapid Assessment Key User Manual Table of Contents Getting Started with the Rapid Assessment Key... 1 Welcome to the Print Audit Rapid Assessment Key...1 System Requirements...1 Network Requirements...1
Introduction to Microsoft Access 2003
Introduction to Microsoft Access 2003 Zhi Liu School of Information Fall/2006 Introduction and Objectives Microsoft Access 2003 is a powerful, yet easy to learn, relational database application for Microsoft
TASKE Call Center Management Tools
TASKE Call Center Management Tools Version 7 Integrating and Configuring Blue Pumpkin PrimeTime and PrimeTime Skills TASKE Technology Inc. Copyright 2000, TASKE Technology Inc. All rights reserved. Printed
An Introduction to SAS/SHARE, By Example
Paper 020-29 An Introduction to SAS/SHARE, By Example Larry Altmayer, U.S. Census Bureau, Washington, DC ABSTRACT SAS/SHARE software is a useful tool for allowing several users to simultaneously access
Tips and Tricks for Creating Multi-Sheet Microsoft Excel Workbooks the Easy Way with SAS. Vincent DelGobbo, SAS Institute Inc.
Paper HOW-071 Tips and Tricks for Creating Multi-Sheet Microsoft Excel Workbooks the Easy Way with SAS Vincent DelGobbo, SAS Institute Inc., Cary, NC ABSTRACT Transferring SAS data and analytical results
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
THE HELLO WORLD PROJECT
Paper RIV-08 Yes! SAS ExcelXP WILL NOT Create a Microsoft Excel Graph; But SAS Users Can Command Microsoft Excel to Automatically Create Graphs From SAS ExcelXP Output William E Benjamin Jr, Owl Computer
Instructions for applying data validation(s) to data fields in Microsoft Excel
1 of 10 Instructions for applying data validation(s) to data fields in Microsoft Excel According to Microsoft Excel, a data validation is used to control the type of data or the values that users enter
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
Doors User Data File Export/Import
The Doors User Data File Export/Import feature allows a systems integration expert to import selected and limited user information from an external application (such as Excel or some similar spreadsheet
Improving Your Relationship with SAS Enterprise Guide
Paper BI06-2013 Improving Your Relationship with SAS Enterprise Guide Jennifer Bjurstrom, SAS Institute Inc. ABSTRACT SAS Enterprise Guide has proven to be a very beneficial tool for both novice and experienced
How To Use Optimum Control EDI Import. EDI Invoice Import. EDI Supplier Setup General Set up
How To Use Optimum Control EDI Import EDI Invoice Import This optional module will download digital invoices into Optimum Control, updating pricing, stock levels and account information automatically with
UTILITIES BACKUP. Figure 25-1 Backup & Reindex utilities on the Main Menu
25 UTILITIES PastPerfect provides a variety of utilities to help you manage your data. Two of the most important are accessed from the Main Menu Backup and Reindex. The other utilities are located within
Differences in Use between Calc and Excel
Differences in Use between Calc and Excel Title: Differences in Use between Calc and Excel: Version: 1.0 First edition: October 2004 Contents Overview... 3 Copyright and trademark information... 3 Feedback...3
Guidelines for Completing the VDOT Form C 13CPM
Guidelines for Completing the VDOT Form C 13CPM CONSTRUCTION DIVISION 1. OVERVIEW The VDOT Form C 13CPM is required to prepare and submit the Contractor s Progress Earnings Schedule as specified in the
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
Jet Data Manager 2012 User Guide
Jet Data Manager 2012 User Guide Welcome This documentation provides descriptions of the concepts and features of the Jet Data Manager and how to use with them. With the Jet Data Manager you can transform
UNIX Comes to the Rescue: A Comparison between UNIX SAS and PC SAS
UNIX Comes to the Rescue: A Comparison between UNIX SAS and PC SAS Chii-Dean Lin, San Diego State University, San Diego, CA Ming Ji, San Diego State University, San Diego, CA ABSTRACT Running SAS under
Search and Replace in SAS Data Sets thru GUI
Search and Replace in SAS Data Sets thru GUI Edmond Cheng, Bureau of Labor Statistics, Washington, DC ABSTRACT In managing data with SAS /BASE software, performing a search and replace is not a straight
Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access
Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix Jennifer Clegg, SAS Institute Inc., Cary, NC Eric Hill, SAS Institute Inc., Cary, NC ABSTRACT Release 2.1 of SAS
SAS Visual Analytics 7.2 for SAS Cloud: Quick-Start Guide
SAS Visual Analytics 7.2 for SAS Cloud: Quick-Start Guide Introduction This quick-start guide covers tasks that account administrators need to perform to set up SAS Visual Statistics and SAS Visual Analytics
NorthClark Computing, Inc. Bill of Material and Parts Master Maintenance. Administrator s Guide
ERP Consulting Web Development Custom Programming Solutions Desktop & Web Applications for Manfact NorthClark Computing, Inc. Bill of Material and Parts Master Maintenance Administrator s Guide Web and
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
Essential Project Management Reports in Clinical Development Nalin Tikoo, BioMarin Pharmaceutical Inc., Novato, CA
Essential Project Management Reports in Clinical Development Nalin Tikoo, BioMarin Pharmaceutical Inc., Novato, CA ABSTRACT Throughout the course of a clinical trial the Statistical Programming group is
Help File. Version 1.1.4.0 February, 2010. MetaDigger for PC
Help File Version 1.1.4.0 February, 2010 MetaDigger for PC How to Use the Sound Ideas MetaDigger for PC Program: The Sound Ideas MetaDigger for PC program will help you find and work with digital sound
Technical Paper. Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication
Technical Paper Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication Release Information Content Version: 1.0 October 2015. Trademarks and Patents SAS Institute
Hosting Users Guide 2011
Hosting Users Guide 2011 eofficemgr technology support for small business Celebrating a decade of providing innovative cloud computing services to small business. Table of Contents Overview... 3 Configure
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
DiskPulse DISK CHANGE MONITOR
DiskPulse DISK CHANGE MONITOR User Manual Version 7.9 Oct 2015 www.diskpulse.com [email protected] 1 1 DiskPulse Overview...3 2 DiskPulse Product Versions...5 3 Using Desktop Product Version...6 3.1 Product
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,
Microsoft Access Rollup Procedure for Microsoft Office 2007. 2. Click on Blank Database and name it something appropriate.
Microsoft Access Rollup Procedure for Microsoft Office 2007 Note: You will need tax form information in an existing Excel spreadsheet prior to beginning this tutorial. 1. Start Microsoft access 2007. 2.
SAS, Excel, and the Intranet
SAS, Excel, and the Intranet Peter N. Prause, The Hartford, Hartford CT Charles Patridge, The Hartford, Hartford CT Introduction: The Hartford s Corporate Profit Model (CPM) is a SAS based multi-platform
Resources You can find more resources for Sync & Save at our support site: http://www.doforms.com/support.
Sync & Save Introduction Sync & Save allows you to connect the DoForms service (www.doforms.com) with your accounting or management software. If your system can import a comma delimited, tab delimited
Creating and Using Forms in SharePoint
Creating and Using Forms in SharePoint Getting started with custom lists... 1 Creating a custom list... 1 Creating a user-friendly list name... 1 Other options for creating custom lists... 2 Building a
SAS Visual Analytics 7.1 for SAS Cloud. Quick-Start Guide
SAS Visual Analytics 7.1 for SAS Cloud Quick-Start Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. SAS Visual Analytics 7.1 for SAS Cloud: Quick-Start Guide.
Paper 74881-2011 Creating SAS Datasets from Varied Sources Mansi Singh and Sofia Shamas, MaxisIT Inc, NJ
Paper 788-0 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
Word 2010: Mail Merge to Email with Attachments
Word 2010: Mail Merge to Email with Attachments Table of Contents TO SEE THE SECTION FOR MACROS, YOU MUST TURN ON THE DEVELOPER TAB:... 2 SET REFERENCE IN VISUAL BASIC:... 2 CREATE THE MACRO TO USE WITHIN
ODBC Driver Version 4 Manual
ODBC Driver Version 4 Manual Revision Date 12/05/2007 HanDBase is a Registered Trademark of DDH Software, Inc. All information contained in this manual and all software applications mentioned in this manual
3 What s New in Excel 2007
3 What s New in Excel 2007 3.1 Overview of Excel 2007 Microsoft Office Excel 2007 is a spreadsheet program that enables you to enter, manipulate, calculate, and chart data. An Excel file is referred to
Implementing a SAS 9.3 Enterprise BI Server Deployment TS-811. in Microsoft Windows Operating Environments
Implementing a SAS 9.3 Enterprise BI Server Deployment TS-811 in Microsoft Windows Operating Environments Table of Contents Introduction... 1 Step 1: Create a SAS Software Depot..... 1 Step 2: Prepare
Setting Up ALERE with Client/Server Data
Setting Up ALERE with Client/Server Data TIW Technology, Inc. November 2014 ALERE is a registered trademark of TIW Technology, Inc. The following are registered trademarks or trademarks: FoxPro, SQL Server,
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
Payroll Processing Tips & Tricks
Ascentis Macro-Enabled Workbooks Ascentis has a variety of customizable macro-enabled workbooks which can be used to mass import values into either the employee profiles or into Payroll Processing. Master
ODBC Chapter,First Edition
1 CHAPTER 1 ODBC Chapter,First Edition Introduction 1 Overview of ODBC 2 SAS/ACCESS LIBNAME Statement 3 Data Set Options: ODBC Specifics 15 DBLOAD Procedure: ODBC Specifics 25 DBLOAD Procedure Statements
How to Use SDTM Definition and ADaM Specifications Documents. to Facilitate SAS Programming
How to Use SDTM Definition and ADaM Specifications Documents to Facilitate SAS Programming Yan Liu Sanofi Pasteur ABSTRCT SDTM and ADaM implementation guides set strict requirements for SDTM and ADaM variable
Microsoft Access Basics
Microsoft Access Basics 2006 ipic Development Group, LLC Authored by James D Ballotti Microsoft, Access, Excel, Word, and Office are registered trademarks of the Microsoft Corporation Version 1 - Revision
How to Copy A SQL Database SQL Server Express (Making a History Company)
How to Copy A SQL Database SQL Server Express (Making a History Company) These instructions are written for use with SQL Server Express. Check with your Network Administrator if you are not sure if you
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
Intro to Mail Merge. Contents: David Diskin for the University of the Pacific Center for Professional and Continuing Education. Word Mail Merge Wizard
Intro to Mail Merge David Diskin for the University of the Pacific Center for Professional and Continuing Education Contents: Word Mail Merge Wizard Mail Merge Possibilities Labels Form Letters Directory
You have got SASMAIL!
You have got SASMAIL! Rajbir Chadha, Cognizant Technology Solutions, Wilmington, DE ABSTRACT As SAS software programs become complex, processing times increase. Sitting in front of the computer, waiting
Using the Advanced Tier Data Collection Tool. A Troubleshooting Guide
Using the Advanced Tier Data Collection Tool A Troubleshooting Guide Table of Contents Mouse Click the heading to jump to the page Enable Content/ Macros... 4 Add a new student... 6 Data Entry Screen...
Instructions for Creating an Outlook E-mail Distribution List from an Excel File
Instructions for Creating an Outlook E-mail Distribution List from an Excel File 1.0 Importing Excel Data to an Outlook Distribution List 1.1 Create an Outlook Personal Folders File (.pst) Notes: 1) If
Analyzing the Server Log
87 CHAPTER 7 Analyzing the Server Log Audience 87 Introduction 87 Starting the Server Log 88 Using the Server Log Analysis Tools 88 Customizing the Programs 89 Executing the Driver Program 89 About the
STAT 524. Biostatistical Computing. Data Sources and Data Entry
STAT 524 Biostatistical Computing Data Sources and Data Entry Overview! Sources of Data! Data Entry Concepts! Data Entry Software! Example of MS Excel (demo in class)! Example of EpiInfo (demo in class)!
Time Clock Import Setup & Use
Time Clock Import Setup & Use Document # Product Module Category CenterPoint Payroll Processes (How To) This document outlines how to setup and use of the Time Clock Import within CenterPoint Payroll.
9.1 SAS/ACCESS. Interface to SAP BW. User s Guide
SAS/ACCESS 9.1 Interface to SAP BW User s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS/ACCESS 9.1 Interface to SAP BW: User s Guide. Cary, NC: SAS
How To Create A Report In Excel
Table of Contents Overview... 1 Smartlists with Export Solutions... 2 Smartlist Builder/Excel Reporter... 3 Analysis Cubes... 4 MS Query... 7 SQL Reporting Services... 10 MS Dynamics GP Report Templates...
Contents. Accessing Compensation Reports Generating Compensation Reports. Saving PDF Reports after Viewing Printing PDF Reports
Broker Compensation Reports Online Contents Accessing Compensation Reports Generating Compensation Reports PDF o o Excel o o o Saving PDF Reports after Viewing Printing PDF Reports Exporting Reports to
email-lead Grabber Business 2010 User Guide
email-lead Grabber Business 2010 User Guide Copyright and Trademark Information in this documentation is subject to change without notice. The software described in this manual is furnished under a license
Working together with Word, Excel and PowerPoint
Working together with Word, Excel and PowerPoint Have you ever wanted your Word document to include data from an Excel spreadsheet, or diagrams you ve created in PowerPoint? This note shows you how to
How To Write A Powerpoint Report On An Orgwin Database On A Microsoft Powerpoint 2.5 (Pg2) Or Gpl (Pg3) On A Pc Or Macintosh (Pg4) On An Ubuntu 2.2
SQL Excel Report Library Setup and Utilization Table of Contents Introduction... 3 Exporting Data to SQL... 3 Downloading the SQL Reports... 5 SQL Settings Configuration... 6 Site Options Configuration:...
Basics Series-4004 Database Manager and Import Version 9.0
Basics Series-4004 Database Manager and Import Version 9.0 Information in this document is subject to change without notice and does not represent a commitment on the part of Technical Difference, Inc.
Interfacing SAS Software, Excel, and the Intranet without SAS/Intrnet TM Software or SAS Software for the Personal Computer
Interfacing SAS Software, Excel, and the Intranet without SAS/Intrnet TM Software or SAS Software for the Personal Computer Peter N. Prause, The Hartford, Hartford CT Charles Patridge, The Hartford, Hartford
