BAT Files: Run all Your Programs with One Click in PC SAS
PharmaSUG2011 - Paper PO01
BAT Files: Run all Your Programs with One Click in PC SAS
ABSTRACT
William Conover, Advanced Clinical, Bannockburn, IL
This is a simple, fast and easy way to automatically create a BAT file that runs all of the SAS? programs in one directory.
INTRODUCTION
In PC SAS 9.1, the ability to run all SAS programs in one directory with a click of the mouse is a powerful tool for efficiency. This ability is also very easy to accomplish with the reusable `drag and drop' type program presented in this paper.
The basic concept is to first use a macro copied from the SAS support website, %DRIVE(), that lists all the program names within a directory. The second step is to use DATA _NULL_ and the FILE statement to output a BAT file containing syntax to run all the programs. The final step is to actually use the file to run all the SAS programs in the directory. With that, a few custom modifications may be desired and are discussed.
For the sake of simplicity, all the code discussed here is placed in a single program named `Create_BAT.sas'. This program can be placed in any directory, run in batch mode by right clicking on the file and selecting the appropriate option, and will create the file `_Run_All_SAS_Programs.bat' that runs all SAS programs in the current directory, excluding `Create_BAT.sas'.
STEP 1: LIST ALL THE SAS PROGRAMS IN A DIRECTORY
Creating a list of SAS programs in a directory can be accomplished a multitude of ways using different utilities, macros, or simply hand entering each program name into a spreadsheet, text file or macro variable. For this application, a macro copied from the SAS support website, %DRIVE(), is utilized. This macro lists files with a user defined extension, in this case `.sas', and prints the list to the SAS log file. With a slight modification, this list is redirected to a temporary text file named `Create_BAT.txt'. The modified code is presented below:
filename prgnm 'Create_BAT.txt'; libname here ' ';
* ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- ivp batch program user s manual for pairing
- advanced batch file programming pdf
- creating a dos batch file to run sas programs david franklin
- fsx batch document processor file servexpress
- bat files run all your programs with one click in pc sas
- about this tutorial
- building the easy button automating sas program batch runs
- how to make an executable jar file with a batch file com sci gate
- running multiple analyses using a batch file
- sugi 27 run all your sas r programs in one program automatically
Related searches
- java programs with output pdf
- java programs with source code
- mba programs with gmat waivers
- should school run all year long
- visual basic programs with codes
- not all installed programs showing windows 10
- living with a stent in your heart
- affiliate programs with free website
- bat files open in notepad
- capital one log in your account
- list all installed programs in windows 10
- list all installed programs windows 10