Wonderful Unix SAS Scripts: SAS Quickies for Dummies Raoul Bernal, Amgen Inc., Thousand Oaks, CA
|
|
- Vincent Marsh
- 7 years ago
- Views:
Transcription
1 Wonderful Unix SAS Scripts: SAS Quickies for Dummies Raoul Bernal, Amgen Inc., Thousand Oaks, CA ABSTRACT Repeated simple SAS jobs can be executed online, and in real-time to avoid having to directly execute SAS command files, producing immediate results directly into any Unix display window. The trick is to simulate SAS using a Unix script, which can be executed just like any Unix command with minimum of one or two parameters. One advantage of making such SAS Unix scripts available is the quick access to SAS without having to learn actual SAS syntax. This reduces the number of exploratory data requests from non-regular SAS users, thereby empowering them to get quickie exploratory results without having to ask a SAS practitioner. Just like any Unix command, the results can be directed to an output file (other than the default output screen) for reporting. INTRODUCTION Imagine getting ad hoc or last minute request from your supervisor to produce a quick report to generate database records with specific criteria, or to generate a count of subjects meeting certain criteria, etc. Imagine if all you have to do to fulfill this type of request is to type any of the following: pp dataset condition pf dataset "catvar1*catvar2" pu dataset contvar1 "group=1" pf dataset subject_id condition pc dataset One way to minimize ad hoc requests is to empower non-sas-trained colleagues and co-workers to use tailored Unix shell scripts to generate their own reports for their simple queries. The simpler the query, the more applicable the Unix SAS shell script could be to address the query and provide the needed statistics. This presentation will demonstrate the power and ease behind Unix shell scripts for SAS and provide examples of applications using the simple scripts pc, pp, pf, pu for SAS procedures PROC CONTENTS, PROC PRINT, PROC FREQ and PROC UNIVARIATE, respectively. By the end of the presentation, one should be able to create simple Unix shell scripts for SAS and realize their relative ease and time-saving features. CREATING A SIMPLE UNIX SCRIPT A simple Unix script is composed of a simple command executable in the Unix operating system, with optional parameters. An example script would one that lists all files in a current directory, by time: ls last *.* Instead of typing this command, a simple executable script that contains this line, say, fl (for file list) can be saved in utilities folder so that typing fl essentially produces the same results as ls -last *.*.. CREATING SIMPLE SAS UNIX SCRIPTS Creating a SAS Unix script would be more complicated than the simplest Unix commands because we need to specify: a) the SAS procedure, b) the dataset to apply the procedure to, and optionally, c) any condition and option to apply to the dataset. Moreover, we need to create a temporary behind-the-scenes SAS job to execute in the background after entering the SAS Unix script in the command line. The objective is to create a SAS Unix script, which, when executed with required dataset, parameters and condition, would be equivalent to executing a SAS job using the same SAS procedure. Examples of SAS Unix scripts will be discussed in detail. A. SAS UNIX SCRIPT pp Command syntax: pp dataset condition 1
2 This script pp (short for proc print), when executed with parameters dataset and condition, would be equivalent to the execution of the following PROC PRINT code in SAS: proc print data=dataset width=min; where (condition); run; As an example, printing the demo.sas7bdat dataset for patient id would simply require the following command: pp demo cohort = A1 which yields the following result: The straightforward Unix script for pp would be: #!/bin/csh -f # pp - prints out all or part of a UNIX dataset using PROC PRINT # The first argument is the dataset set dataset="$1" # The second argument is for setting condition to subset the data set condition="$2" # Find the dataset file set pwd=`pwd` if (-f $dataset.sas7bdat == 1) then set sasdir = "$pwd" echo "Dataset: $dataset.sas7bdat not found. Exiting... " # Begin constructing the SAS program in the temporary directory /tmp echo "%*include 'init.sas' ;" >! /tmp/pp$$.sas echo "libname sasdata '$sasdir' ;" # Continue constructing the program echo "options nodate nocenter nofmterr pagesize=74 linesize=132 ;" echo "proc printto file='/tmp/pp$$.lis' ;" echo "title Printing dataset: %nrbquote($dataset) Date: &sysdate. Time: &systime.;" echo "data $dataset; set sasdata.$dataset ;" if ("$2"!= '') then echo " where $condition;" echo "proc print data=$dataset;" echo "Running proc print on dataset: $dataset ($sasdir)" # Run the program in the temporary directory./tmp cd /tmp sas -913 pp$$.sas >> /tmp/pp$$.lis grep -i "sas stopped" /tmp/pp$$.log 2
3 test -f /tmp/pp$$.lis; set stat=$status if ($stat == 0) then set lines = `head -10 /tmp/pp$$.lis wc -l` if ($lines <= 2) then echo No output.lst file was created. more /tmp/pp$$.log more /tmp/pp$$.lis echo No output.lst file was created. more /tmp/pp$$.log /bin/rm -rf /tmp/pp$$.* B. SAS UNIX SCRIPT pf Command syntax: pf dataset tables condition This script pf (short for proc freq), which, when executed with parameters dataset, tables and condition, would be equivalent to the execution of the following PROC FREQ code in SAS: proc freq data=dataset; tables tables / missing missprint; where (condition); run; As an example, producing the frequency table race*sex from the demo.sas7bdat dataset for age group age > 50 would simply require the following command: pf demo race * sex age > 50 which yields the following result: 3
4 The straightforward Unix script for pf would be: #!/bin/csh -f # pf performs PROC FREQ on SAS dataset # The first argument is the dataset # The second argument is the tables statement # The third argument is the condition statement set dataset = "$1" set tables = "$2" set condition = "$3" # Find the dataset file set pwd=`pwd` if (-f $dataset.sas7bdat == 1) then set sasdir = "$pwd" echo "Dataset: $dataset.sas7bdat not found. Exiting... " # Begin constructing the SAS program in the temporary directory /tmp echo "%*include 'init.sas';" >! /tmp/pf$$.sas echo "libname sasdata '$sasdir';" # Continue constructing the program echo "options nocenter nofmterr pagesize=74 linesize=150;" echo "proc printto file='/tmp/pf$$.lis';" echo "proc freq data=sasdata.$dataset;" echo " tables $tables;" if ("$3"!= '') then echo " where $condition;" echo "Running proc freq on dataset: $dataset ($sasdir)" # Run the program in temporary directory cd /tmp sas -913 pf$$.sas >> pf$$.lis grep -i "sas stopped" /tmp/pf$$.log test -f /tmp/pf$$.lis; set stat=$status if ($stat == 0) then set lines = `head -10 /tmp/pf$$.lis wc -l` if ($lines <= 2) then echo empty.lis file created. more /tmp/pf$$.log more /tmp/pf$$.lis echo no.lis file created. more /tmp/pf$$.log /bin/rm -rf /tmp/pf$$.* C. SAS UNIX SCRIPT pu Command syntax: pu dataset variable condition This script pu (short for proc univariate), which, when executed with parameters dataset, variable, condition, and byvar would be equivalent to the execution of the following PROC UNIVARIATE code in SAS: proc univariate data=dataset; var variable; where (condition); by byvar; run; 4
5 As an example, producing the univariate statistics for variable age from the demo.sas7bdat dataset for condition (cohort = A1) would simply require the following command: pu demo age cohort=a1 sex which yields the following result: The straightforward Unix script for pu would be: #!/bin/csh -f # pu - performs PROC UNIVARIATE on specific continuous variable in SAS dataset # The first argument is the dataset # The second argument is the variable of interest # The third argument is the condition statement # The fourth argument is the BY variable to stratify analysis set dataset = "$1" set variable = "$2" set condition = "$3" set byvar = "$4" # Determine if edit is requested to edit/modify SAS job if ("$3" == 'edit' "$4" == 'edit' "$5" == 'edit') then 5
6 set edit = yes set edit = no # Find the dataset file set pwd=`pwd` if (-f $dataset.sas7bdat == 1) then set sasdir = "$pwd" echo "Dataset: $dataset.sas7bdat not found. Exiting... " # Begin constructing the sas program in the temporary directory /tmp echo "%*include 'init.sas';" >! /tmp/pu$$.sas echo "libname sasdata '$sasdir';" >> /tmp/pu$$.sas # Continue constructing the program echo "options nocenter nofmterr pagesize=74 linesize=90;" >> /tmp/pu$$.sas echo "proc printto file='/tmp/pu$$.lis';" >> /tmp/pu$$.sas >> /tmp/pu$$.sas echo "data $dataset;" >> /tmp/pu$$.sas echo " set sasdata.$dataset;" >> /tmp/pu$$.sas >> /tmp/pu$$.sas >> /tmp/pu$$.sas if ("$4"!= '' & "$4"!= 'edit') then echo "proc sort data= $dataset;" >> /tmp/pu$$.sas echo " by $byvar;" >> /tmp/pu$$.sas >> /tmp/pu$$.sas >> /tmp/pu$$.sas echo "proc univariate data=$dataset;" >> /tmp/pu$$.sas echo " var $variable;" >> /tmp/pu$$.sas if ("$3"!= '' & "$3"!= 'edit') then echo " where $condition;" >> /tmp/pu$$.sas if ("$4"!= '' & "$4"!= 'edit') then echo " by $byvar;" >> /tmp/pu$$.sas >> /tmp/pu$$.sas >> /tmp/pu$$.sas # If edit set to yes, then invoke the text editor if ("$edit" == 'yes') then vi /tmp/pu$$.sas echo "Running (edited) proc univariate on dataset: $dataset ($sasdir)" echo "Running proc univariate on dataset: $dataset ($sasdir)" # Run the program in the scratch directory cd /tmp sas -913 pu$$.sas >> pu$$.lis grep -i "sas stopped" /tmp/pu$$.log test -f /tmp/pu$$.lis; set stat=$status if ($stat == 0) then set lines = `head -10 /tmp/pu$$.lis wc -l` if ($lines <= 2) then echo No output.lst file was created. more /tmp/pu$$.log more /tmp/pu$$.lis echo No output.lst file was created. more /tmp/pu$$.log /bin/rm -rf /tmp/pu$$.* 6
7 D. SAS UNIX SCRIPT pc Command syntax: pc dataset This script pc (short for proc contents), which, when executed with parameter dataset would be equivalent to the execution of the following PROC CONTENTS code in SAS: proc contents data=dataset; run; As an example, producing the contents of the demo.sas7bdat dataset would simply require the following command: pc demo which yields the following result: 7
8 MODIFYING SAS UNIX SCRIPTS FOR ADDED ENHANCEMENT Once a desired Unix script command is finalized, oftentimes the actual SAS command generated needs to be saved to be formalized as a library job. A possible enhancement would be the option to create and edit the SAS job prior to the script execution. This is accomplished by simply adding a parameter or option to the script, in the form of a unique parameter value that can only be interpreted for creating and editing such a SAS job. In our example, we use the keyword edit. When the keyword edit is parsed as an option, the temporary SAS job is opened in Unix window (using default editor) for editing and saving. A. SAS UNIX SCRIPT pu WITH edit PARAMETER Command syntax: pu dataset variable condition edit For the same SAS example for script pu above, the following job is created and opened in the default Unix editor when using edit option in the command line: pu demo age cohort=a1 sex edit Once can save this temporary job in /tmp/ directory into an actual SAS job, to be formalized as a library job later. This file can be saved before the script actually executes the job and dumps the results into the default output, which was shown earlier. (Note that in the actual script, SAS statements to sort the dataset by the byvar variable have been added to avoid error due to unsorted data.) B. SAS UNIX SCRIPT pc WITH edit PARAMETER Command syntax: pu dataset variable condition edit For the same SAS example for the script pc above, the following job is created and opened in the default Unix editor when using edit option in the command line: pc demo edit 8
9 CONCLUSION Creating Unix scripts to automate SAS execution is practical for teams with members that need quick access to SAS results without having to learn the necessary programming behind SAS. This saves valuable time and effort for the SAS programmer, who can then concentrate on planned deliverables instead of getting bogged down by ad hoc requests. The scripts also help the programmer to make quick exploratory data checks. For data checks and ad hoc requests that are often repeated, the edit feature also allows the programmer to save the job into a more formal SAS production job. CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Raoul A. Bernal Amgen Inc. One Amgen Center Drive Thousand Oaks, CA Work Phone: rbernal@amgen.com Web: Trademark statement: 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. 9
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
More informationWe begin by defining a few user-supplied parameters, to make the code transferable between various projects.
PharmaSUG 2013 Paper CC31 A Quick Patient Profile: Combining External Data with EDC-generated Subject CRF Titania Dumas-Roberson, Grifols Therapeutics, Inc., Durham, NC Yang Han, Grifols Therapeutics,
More informationPaper 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
More informationPharmaSUG2011 - Paper AD11
PharmaSUG2011 - Paper AD11 Let the system do the work! Automate your SAS code execution on UNIX and Windows platforms Niraj J. Pandya, Element Technologies Inc., NJ Vinodh Paida, Impressive Systems Inc.,
More informationGuido s Guide to PROC FREQ A Tutorial for Beginners Using the SAS System Joseph J. Guido, University of Rochester Medical Center, Rochester, NY
Guido s Guide to PROC FREQ A Tutorial for Beginners Using the SAS System Joseph J. Guido, University of Rochester Medical Center, Rochester, NY ABSTRACT PROC FREQ is an essential procedure within BASE
More informationDeveloping Applications Using BASE SAS and UNIX
Developing Applications Using BASE SAS and UNIX Joe Novotny, GlaxoSmithKline Pharmaceuticals, Inc., Collegeville, PA ABSTRACT How many times have you written simple SAS programs to view the contents of
More informationMaking the Output Delivery System (ODS) Work for You William Fehlner, SAS Institute (Canada) Inc., Toronto, Ontario
Making the Output Delivery System (ODS) Work for You William Fehlner, SAS Institute (Canada) Inc, Toronto, Ontario ABSTRACT Over the years, a variety of options have been offered in order to give a SAS
More informationDifferent ways of calculating percentiles using SAS Arun Akkinapalli, ebay Inc, San Jose CA
Different ways of calculating percentiles using SAS Arun Akkinapalli, ebay Inc, San Jose CA ABSTRACT Calculating percentiles (quartiles) is a very common practice used for data analysis. This can be accomplished
More informationInstant 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
More informationPharmaSUG 2013 - Paper CC18
PharmaSUG 2013 - Paper CC18 Creating a Batch Command File for Executing SAS with Dynamic and Custom System Options Gary E. Moore, Moore Computing Services, Inc., Little Rock, Arkansas ABSTRACT You would
More informationPharmaSUG 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,
More informationBasic C Shell. helpdesk@stat.rice.edu. 11th August 2003
Basic C Shell helpdesk@stat.rice.edu 11th August 2003 This is a very brief guide to how to use cshell to speed up your use of Unix commands. Googling C Shell Tutorial can lead you to more detailed information.
More informationPost Processing Macro in Clinical Data Reporting Niraj J. Pandya
Post Processing Macro in Clinical Data Reporting Niraj J. Pandya ABSTRACT Post Processing is the last step of generating listings and analysis reports of clinical data reporting in pharmaceutical industry
More information1 Basic commands. 2 Terminology. CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger
CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger 1 Basic commands This section describes a list of commonly used commands that are available on the EECS UNIX systems. Most commands are executed by
More informationREx: An Automated System for Extracting Clinical Trial Data from Oracle to SAS
REx: An Automated System for Extracting Clinical Trial Data from Oracle to SAS Edward McCaney, Centocor Inc., Malvern, PA Gail Stoner, Centocor Inc., Malvern, PA Anthony Malinowski, Centocor Inc., Malvern,
More informationApplications Development
Paper 21-25 Using SAS Software and Visual Basic for Applications to Automate Tasks in Microsoft Word: An Alternative to Dynamic Data Exchange Mark Stetz, Amgen, Inc., Thousand Oaks, CA ABSTRACT Using Dynamic
More informationA Tiny Queuing System for Blast Servers
A Tiny Queuing System for Blast Servers Colas Schretter and Laurent Gatto December 9, 2005 Introduction When multiple Blast [4] similarity searches are run simultaneously against large databases and no
More informationBefore You Begin... 2 Running SAS in Batch Mode... 2 Printing the Output of Your Program... 3 SAS Statements and Syntax... 3
Using SAS In UNIX 2010 Stanford University provides UNIX computing resources on the UNIX Systems, which can be accessed through the Stanford University Network (SUNet). This document provides a basic overview
More informationEssential 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
More information9.1 SAS. SQL Query Window. User s Guide
SAS 9.1 SQL Query Window User s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS 9.1 SQL Query Window User s Guide. Cary, NC: SAS Institute Inc. SAS
More informationCounting the Ways to Count in SAS. Imelda C. Go, South Carolina Department of Education, Columbia, SC
Paper CC 14 Counting the Ways to Count in SAS Imelda C. Go, South Carolina Department of Education, Columbia, SC ABSTRACT This paper first takes the reader through a progression of ways to count in SAS.
More informationPreparing 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
More informationUsing PC-SAS with WRDS. Sun Li Centre for Academic Computing lsun@smu.edu.sg
Using PC-SAS with WRDS Sun Li Centre for Academic Computing lsun@smu.edu.sg 1 Outline Brief introduction to WRDS How to obtain a WRDS account How to access WRDS remotely Web-query SSH PC-SAS How to work
More informationUnix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2
Unix Shell Scripts Norman Matloff July 30, 2008 Contents 1 Introduction 1 2 Invoking Shell Scripts 2 2.1 Direct Interpretation....................................... 2 2.2 Indirect Interpretation......................................
More information# or ## - how to reference SQL server temporary tables? Xiaoqiang Wang, CHERP, Pittsburgh, PA
# or ## - how to reference SQL server temporary tables? Xiaoqiang Wang, CHERP, Pittsburgh, PA ABSTRACT This paper introduces the ways of creating temporary tables in SQL Server, also uses some examples
More informationSyntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)
List of Useful Commands for UNIX SHELL Scripting We all are well aware of Unix Commands but still would like to walk you through some of the commands that we generally come across in our day to day task.
More informationEmailing Automated Notification of Errors in a Batch SAS Program Julie Kilburn, City of Hope, Duarte, CA Rebecca Ottesen, City of Hope, Duarte, CA
Emailing Automated Notification of Errors in a Batch SAS Program Julie Kilburn, City of Hope, Duarte, CA Rebecca Ottesen, City of Hope, Duarte, CA ABSTRACT With multiple programmers contributing to a batch
More informationCommand Line Crash Course For Unix
Command Line Crash Course For Unix Controlling Your Computer From The Terminal Zed A. Shaw December 2011 Introduction How To Use This Course You cannot learn to do this from videos alone. You can learn
More informationThe Query Builder: The Swiss Army Knife of SAS Enterprise Guide
Paper 1557-2014 The Query Builder: The Swiss Army Knife of SAS Enterprise Guide ABSTRACT Jennifer First-Kluge and Steven First, Systems Seminar Consultants, Inc. The SAS Enterprise Guide Query Builder
More informationNew Tricks for an Old Tool: Using Custom Formats for Data Validation and Program Efficiency
New Tricks for an Old Tool: Using Custom Formats for Data Validation and Program Efficiency S. David Riba, JADE Tech, Inc., Clearwater, FL ABSTRACT PROC FORMAT is one of the old standards among SAS Procedures,
More information32-Bit Workload Automation 5 for Windows on 64-Bit Windows Systems
32-Bit Workload Automation 5 for Windows on 64-Bit Windows Systems Overview 64-bit Windows Systems Modifying the Working Folder for Universal Server Components Applications Installed in the Windows System
More informationData 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
More informationLabels, Labels, and More Labels Stephanie R. Thompson, Rochester Institute of Technology, Rochester, NY
Paper FF-007 Labels, Labels, and More Labels Stephanie R. Thompson, Rochester Institute of Technology, Rochester, NY ABSTRACT SAS datasets include labels as optional variable attributes in the descriptor
More informationThirty Useful Unix Commands
Leaflet U5 Thirty Useful Unix Commands Last revised April 1997 This leaflet contains basic information on thirty of the most frequently used Unix Commands. It is intended for Unix beginners who need a
More informationHP-UX Essentials and Shell Programming Course Summary
Contact Us: (616) 875-4060 HP-UX Essentials and Shell Programming Course Summary Length: 5 Days Prerequisite: Basic computer skills Recommendation Statement: Student should be able to use a computer monitor,
More informationTNM093 Practical Data Visualization and Virtual Reality Laboratory Platform
October 6, 2015 1 Introduction The laboratory exercises in this course are to be conducted in an environment that might not be familiar to many of you. It is based on open source software. We use an open
More informationPaper PO06. Randomization in Clinical Trial Studies
Paper PO06 Randomization in Clinical Trial Studies David Shen, WCI, Inc. Zaizai Lu, AstraZeneca Pharmaceuticals ABSTRACT Randomization is of central importance in clinical trials. It prevents selection
More informationCombining 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
More informationQuick Start to Data Analysis with SAS Table of Contents. Chapter 1 Introduction 1. Chapter 2 SAS Programming Concepts 7
Chapter 1 Introduction 1 SAS: The Complete Research Tool 1 Objectives 2 A Note About Syntax and Examples 2 Syntax 2 Examples 3 Organization 4 Chapter by Chapter 4 What This Book Is Not 5 Chapter 2 SAS
More informationChristianna S. Williams, University of North Carolina at Chapel Hill, Chapel Hill, NC
Christianna S. Williams, University of North Carolina at Chapel Hill, Chapel Hill, NC ABSTRACT Have you used PROC MEANS or PROC SUMMARY and wished there was something intermediate between the NWAY option
More informationAutomation 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
More informationUsing SAS to Control and Automate a Multi SAS Program Process. Patrick Halpin November 2008
Using SAS to Control and Automate a Multi SAS Program Process Patrick Halpin November 2008 What are we covering today A little background on me Some quick questions How to use Done files Use a simple example
More informationPerformance Test Suite Results for SAS 9.1 Foundation on the IBM zseries Mainframe
Performance Test Suite Results for SAS 9.1 Foundation on the IBM zseries Mainframe A SAS White Paper Table of Contents The SAS and IBM Relationship... 1 Introduction...1 Customer Jobs Test Suite... 1
More informationHow 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
More informationCommand Line - Part 1
Command Line - Part 1 STAT 133 Gaston Sanchez Department of Statistics, UC Berkeley gastonsanchez.com github.com/gastonstat Course web: gastonsanchez.com/teaching/stat133 GUIs 2 Graphical User Interfaces
More informationI Didn t Know SAS Enterprise Guide Could Do That!
Paper SAS016-2014 I Didn t Know SAS Enterprise Guide Could Do That! Mark Allemang, SAS Institute Inc., Cary, NC ABSTRACT This presentation is for users who are familiar with SAS Enterprise Guide but might
More informationTop 10 Things to Know about WRDS
Top 10 Things to Know about WRDS 1. Do I need special software to use WRDS? WRDS was built to allow users to use standard and popular software. There is no WRDSspecific software to install. For example,
More informationDBF 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
More informationUsing SAS Views and SQL Views Lynn Palmer, State of California, Richmond, CA
Using SAS Views and SQL Views Lynn Palmer, State of Califnia, Richmond, CA ABSTRACT Views are a way of simplifying access to your ganization s database while maintaining security. With new and easier ways
More informationFoundations & Fundamentals. A PROC SQL Primer. Matt Taylor, Carolina Analytical Consulting, LLC, Charlotte, NC
A PROC SQL Primer Matt Taylor, Carolina Analytical Consulting, LLC, Charlotte, NC ABSTRACT Most SAS programmers utilize the power of the DATA step to manipulate their datasets. However, unless they pull
More informationGet in Control! Configuration Management for SAS Projects John Quarantillo, Westat, Rockville, MD
AD004 Get in Control! Configuration Management for SAS Projects John Quarantillo, Westat, Rockville, MD Abstract SAS applications development can benefit greatly from the use of Configuration Management/Source
More informationPROC LOGISTIC: Traps for the unwary Peter L. Flom, Independent statistical consultant, New York, NY
PROC LOGISTIC: Traps for the unwary Peter L. Flom, Independent statistical consultant, New York, NY ABSTRACT Keywords: Logistic. INTRODUCTION This paper covers some gotchas in SAS R PROC LOGISTIC. A gotcha
More informationImporting 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.
More informationEXTRACTING 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
More informationCross platform Migration of SAS BI Environment: Tips and Tricks
ABSTRACT Cross platform Migration of SAS BI Environment: Tips and Tricks Amol Deshmukh, California ISO Corporation, Folsom, CA As a part of organization wide initiative to replace Solaris based UNIX servers
More informationSAS Certified Base Programmer for SAS 9 A00-211. SAS Certification Questions and Answers with explanation
SAS BASE Certification 490 Questions + 50 Page Revision Notes (Free update to new questions for the Same Product) By SAS Certified Base Programmer for SAS 9 A00-211 SAS Certification Questions and Answers
More informationCreating Word Tables using PROC REPORT and ODS RTF
Paper TT02 Creating Word Tables using PROC REPORT and ODS RTF Carey G. Smoak,, Pleasanton, CA ABSTRACT With the introduction of the ODS RTF destination, programmers now have the ability to create Word
More informationSAS Enterprise Guide A Quick Overview of Developing, Creating, and Successfully Delivering a Simple Project
Paper 156-29 SAS Enterprise Guide A Quick Overview of Developing, Creating, and Successfully Delivering a Simple Project Ajaz (A.J.) Farooqi, Walt Disney Parks and Resorts, Lake Buena Vista, FL ABSTRACT
More informationYou 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
More informationPaper TU_09. Proc SQL Tips and Techniques - How to get the most out of your queries
Paper TU_09 Proc SQL Tips and Techniques - How to get the most out of your queries Kevin McGowan, Constella Group, Durham, NC Brian Spruell, Constella Group, Durham, NC Abstract: Proc SQL is a powerful
More informationIntroduction to the new mainframe Chapter 4: Interactive facilities of z/os: TSO/E, ISPF, and UNIX
Chapter 4: Interactive facilities of z/os: TSO/E, ISPF, and UNIX Chapter 4 objectives Be able to: Log on to z/os Run programs from the TSO READY prompt Navigate through the menu options of ISPF Use the
More informationInstalling Java. Table of contents
Table of contents 1 Jargon...3 2 Introduction...4 3 How to install the JDK...4 3.1 Microsoft Windows 95... 4 3.1.1 Installing the JDK... 4 3.1.2 Setting the Path Variable...5 3.2 Microsoft Windows 98...
More information4 Other useful features on the course web page. 5 Accessing SAS
1 Using SAS outside of ITCs Statistical Methods and Computing, 22S:30/105 Instructor: Cowles Lab 1 Jan 31, 2014 You can access SAS from off campus by using the ITC Virtual Desktop Go to https://virtualdesktopuiowaedu
More informationABSTRACT INTRODUCTION
Automating Concatenation of PDF/RTF Reports Using ODS DOCUMENT Shirish Nalavade, eclinical Solutions, Mansfield, MA Shubha Manjunath, Independent Consultant, New London, CT ABSTRACT As part of clinical
More informationCHAPTER 1 Getting Started with SAS in UNIX Environments
3 CHAPTER 1 Getting Started with SAS in UNIX Environments Starting SAS Sessions in UNIX Environments 4 Invoking SAS 4 SAS Invocation Scripts 5 SAS Configuration Files 5 Regenerating SAS Invocation Scripts
More informationAutomated 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
More informationAccessing a Remote SAS Data Library. Transcript
Accessing a Remote SAS Data Library Transcript Accessing a Remote SAS Data Library Transcript was developed by Michelle Buchecker. Additional contributions were made by Christine Riddiough and Cheryl Doninger.
More informationA 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
More informationImproving 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
More informationEXST 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
More informationHadoop Hands-On Exercises
Hadoop Hands-On Exercises Lawrence Berkeley National Lab July 2011 We will Training accounts/user Agreement forms Test access to carver HDFS commands Monitoring Run the word count example Simple streaming
More informationSAS Client-Server Development: Through Thick and Thin and Version 8
SAS Client-Server Development: Through Thick and Thin and Version 8 Eric Brinsfield, Meridian Software, Inc. ABSTRACT SAS Institute has been a leader in client-server technology since the release of SAS/CONNECT
More informationSUGI 29 Applications Development
Backing up File Systems with Hierarchical Structure Using SAS/CONNECT Fagen Xie, Kaiser Permanent Southern California, California, USA Wansu Chen, Kaiser Permanent Southern California, California, USA
More informationTechnical 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
More informationImproving Maintenance and Performance of SQL queries
PaperCC06 Improving Maintenance and Performance of SQL queries Bas van Bakel, OCS Consulting, Rosmalen, The Netherlands Rick Pagie, OCS Consulting, Rosmalen, The Netherlands ABSTRACT Almost all programmers
More informationPermuted-block randomization with varying block sizes using SAS Proc Plan Lei Li, RTI International, RTP, North Carolina
Paper PO-21 Permuted-block randomization with varying block sizes using SAS Proc Plan Lei Li, RTI International, RTP, North Carolina ABSTRACT Permuted-block randomization with varying block sizes using
More informationHands-On UNIX Exercise:
Hands-On UNIX Exercise: This exercise takes you around some of the features of the shell. Even if you don't need to use them all straight away, it's very useful to be aware of them and to know how to deal
More informationUsing Macros to Automate SAS Processing Kari Richardson, SAS Institute, Cary, NC Eric Rossland, SAS Institute, Dallas, TX
Paper 126-29 Using Macros to Automate SAS Processing Kari Richardson, SAS Institute, Cary, NC Eric Rossland, SAS Institute, Dallas, TX ABSTRACT This hands-on workshop shows how to use the SAS Macro Facility
More informationA Demonstration of Hierarchical Clustering
Recitation Supplement: Hierarchical Clustering and Principal Component Analysis in SAS November 18, 2002 The Methods In addition to K-means clustering, SAS provides several other types of unsupervised
More informationInnovative Techniques and Tools to Detect Data Quality Problems
Paper DM05 Innovative Techniques and Tools to Detect Data Quality Problems Hong Qi and Allan Glaser Merck & Co., Inc., Upper Gwynnedd, PA ABSTRACT High quality data are essential for accurate and meaningful
More informationCustomized 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
More informationInstructions for Analyzing Data from CAHPS Surveys:
Instructions for Analyzing Data from CAHPS Surveys: Using the CAHPS Analysis Program Version 3.6 The CAHPS Analysis Program...1 Computing Requirements...1 Pre-Analysis Decisions...2 What Does the CAHPS
More informationSQL Server 2005 Reporting Services (SSRS)
SQL Server 2005 Reporting Services (SSRS) Author: Alex Payne and Brian Welcker Published: May 2005 Summary: SQL Server 2005 Reporting Services is a key component of SQL Server 2005. Reporting Services
More informationTips, Tricks, and Techniques from the Experts
Tips, Tricks, and Techniques from the Experts Presented by Katie Ronk 2997 Yarmouth Greenway Drive, Madison, WI 53711 Phone: (608) 278-9964 Web: www.sys-seminar.com Systems Seminar Consultants, Inc www.sys-seminar.com
More informationAn Introduction to the Linux Command Shell For Beginners
An Introduction to the Linux Command Shell For Beginners Presented by: Victor Gedris In Co-Operation With: The Ottawa Canada Linux Users Group and ExitCertified Copyright and Redistribution This manual
More informationStoring and Using a List of Values in a Macro Variable
Storing and Using a List of Values in a Macro Variable Arthur L. Carpenter California Occidental Consultants, Oceanside, California ABSTRACT When using the macro language it is not at all unusual to need
More informationRelease 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
More informationLet SAS Modify Your Excel File Nelson Lee, Genentech, South San Francisco, CA
ABSTRACT PharmaSUG 2015 - Paper QT12 Let SAS Modify Your Excel File Nelson Lee, Genentech, South San Francisco, CA It is common to export SAS data to Excel by creating a new Excel file. However, there
More informationDiskPulse DISK CHANGE MONITOR
DiskPulse DISK CHANGE MONITOR User Manual Version 7.9 Oct 2015 www.diskpulse.com info@flexense.com 1 1 DiskPulse Overview...3 2 DiskPulse Product Versions...5 3 Using Desktop Product Version...6 3.1 Product
More informationCisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)
Cisco Networking Academy Program Curriculum Scope & Sequence Fundamentals of UNIX version 2.0 (July, 2002) Course Description: Fundamentals of UNIX teaches you how to use the UNIX operating system and
More informationABSTRACT 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
More informationThe HPSUMMARY Procedure: An Old Friend s Younger (and Brawnier) Cousin Anh P. Kellermann, Jeffrey D. Kromrey University of South Florida, Tampa, FL
Paper 88-216 The HPSUMMARY Procedure: An Old Friend s Younger (and Brawnier) Cousin Anh P. Kellermann, Jeffrey D. Kromrey University of South Florida, Tampa, FL ABSTRACT The HPSUMMARY procedure provides
More informationShell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script
Shell Programming Shell Scripts (1) Basically, a shell script is a text file with Unix commands in it. Shell scripts usually begin with a #! and a shell name For example: #!/bin/sh If they do not, the
More informationKickStart 3. The Remote Maintenance Board. The UNIX Interfacing Guide
KickStart 3 The Remote Maintenance Board The UNIX Interfacing Guide KickStart 3 The Remote Maintenance Board The UNIX Interfacing Guide Copyright 1994 by Landmark Research International Corp. 703 Grand
More informationUsing SAS With a SQL Server Database. M. Rita Thissen, Yan Chen Tang, Elizabeth Heath RTI International, RTP, NC
Using SAS With a SQL Server Database M. Rita Thissen, Yan Chen Tang, Elizabeth Heath RTI International, RTP, NC ABSTRACT Many operations now store data in relational databases. You may want to use SAS
More informationTaming 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
More informationPHP Debugging. Draft: March 19, 2013 2013 Christopher Vickery
PHP Debugging Draft: March 19, 2013 2013 Christopher Vickery Introduction Debugging is the art of locating errors in your code. There are three types of errors to deal with: 1. Syntax errors: When code
More informationLecture 4: Writing shell scripts
Handout 5 06/03/03 1 Your rst shell script Lecture 4: Writing shell scripts Shell scripts are nothing other than les that contain shell commands that are run when you type the le at the command line. That
More informationSAS Grid Manager Testing and Benchmarking Best Practices for SAS Intelligence Platform
SAS Grid Manager Testing and Benchmarking Best Practices for SAS Intelligence Platform INTRODUCTION Grid computing offers optimization of applications that analyze enormous amounts of data as well as load
More informationThis presentation explains how to monitor memory consumption of DataStage processes during run time.
This presentation explains how to monitor memory consumption of DataStage processes during run time. Page 1 of 9 The objectives of this presentation are to explain why and when it is useful to monitor
More information