![]() Chapter Contents |
![]() Previous |
![]() Next |
| The BUILD Procedure |
| Restriction: | When you use a CROSSREF statement with the PROC BUILD statement, no other BUILD procedure statements can be used. |
| Note: | When you use the CROSSREF statement, the procedure ends after the analysis data is collected. No BUILD procedure windows are opened, and any options that you specify for the PROC BUILD statement are ignored. |
CROSSREF PROJECT=<libref.>catalog-name|(catalog-list)
|
| Required Argument |
You must always supply the following argument with the CROSSREF statement:
| Options |
You can use the following options in the CROSSREF statement:
The EXCLUDE= and SELECT= options are mutually exclusive. You cannot use both options in the same CROSSREF statement.
If you specify more than one catalog name, you must enclose the list in parentheses and separate the names with spaces.
| Using the CROSSREF Statement |
The CROSSREF statement performs the data collection phase for the Static Analyzer, one of the performance analysis tools that are provided with SAS/AF software. The Static Analyzer scans the SCL code for a project and reports usage information for the SCL program elements, including which functions, variables, constants, widgets, SAS macros, and SAS options are used in the project. For purposes of the analysis, you can define a project to include entries in multiple SAS catalogs and SAS data libraries.
After using the CROSSREF statement to collect data, you can view the results by issuing the following command in any SAS System window:
| SCLPROF STATIC <LIB=analysis-library> |
Note: Use the LIB= option in the SCLPROF command if you used
the OUTLIB= option in the CROSSREF statement to specify a library other than
the default. ![[cautionend]](../common/images/cautend.gif)
For more information about the Static Analyzer, refer to the online Help for the tool.
| CROSSREF Statement Examples |
The following example illustrates the use of the SELECT= option to restrict data collection to a single entry:
proc build;
crossref project=sashelp.aftools
select=astopts.frame;
run;
The following example illustrates the use of the DETAIL= option to limit the depth of data collection in a large project:
proc build;
crossref project=(sashelp.eis sashelp.eisbol1)
detail=(sashelp.afclass sashelp.eisbol1
sashelp.fsp sashelp.mb)
search=(sashelp.eisbol1 sashelp.mb
sashelp.eis sashelp.fsp
sashelp.assist sashelp.calc)
outlib=sasuser;
run;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.