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. For information
about issuing PROC SCAPROC in SAS code, see the examples.
Some tasks of grid-enabled
jobs can have dependencies on previous tasks. PROC SCAPROC combines
and reorders these tasks based on their dependencies to the preceding
tasks. Combining the tasks and submitting them in the same work unit
enables faster processing of the tasks. The NOOPTIMIZE argument of
the GRID option disables the combining and reordering of tasks of
grid-enabled jobs.
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.