The SCAPROC Procedure |
The SCAPROC procedure implements the SAS Code Analyzer, which captures information about input, output, and the use of macro symbols from a SAS job while it is running. The SAS Code Analyzer can write this information and the information that is in the original SAS file to a file that you specify. The SCAPROC procedure can also generate a grid-enabled job that can concurrently run independent pieces of the job. You can issue the SCAPROC procedure on your operating system's command line or in SAS code in the SAS Editor window.
The following command runs your SAS job with the SAS Code Analyzer from your operating system's command line:
sas yourjob.sas -initstmt "proc scaproc; record 'yourjob.txt' ; run;"
is the command used at your site to start SAS.
is the name of the SAS job that you want to analyze.
is the name of the file that will contain a copy of your SAS code. The file will also contain the comments that are inserted to show input and output information, macro symbol usage, and other aspects of your job.
Note: For the GRID statement to work, your site has to license SAS Grid Manager or SAS/CONNECT. SAS Grid Manager enables your generated grid job to run on a grid of distributed machines. SAS/CONNECT enables your generated grid job to run on parallel SAS sessions on one symmetric multiprocessing (SMP) machine.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.