Dictionary of ODS Language Statements |
Valid: | anywhere |
Category: | ODS: Output Control |
Default: | OFF |
Featured in: | Creating a Data Set with and without The MATCH_ALL Option |
Syntax | |
Required Arguments | |
Options | |
Details | |
Contents of the Trace Record | |
Specifying an Output Object | |
Example | |
Determining Which Output Objects a Procedure Creates | |
See Also |
Syntax |
ODS TRACE ON</option(s)>; |
ODS TRACE OFF; |
turns off the writing of the trace record.
Alias: | NO |
turns on the writing of the trace record.
Alias: | OUTPUT |
Alias: | YES |
includes, in the trace record, information for excluded output objects.
Featured in: | Conditionally Selecting Output Objects |
includes the label path for the output object in the record. You can use a label path anywhere that you can use a path.
writes the trace record to the Listing destination, so that each part of the trace record immediately precedes the output object that it describes.
Details |
ODS produces an output object by combining data from the data component with a table definition. The trace record provides information about the data component, the table definition, and the output object. By default, the record that the ODS TRACE statement produces contains these items:
is the name of the output object. You can use the name to reference this output object and others with the same name. For details on how to reference an output object, see How ODS Determines the Destinations for an Output Object. For example, you could use this name in an ODS OUTPUT statement to make a data set from the output object, or you could use it in an ODS SELECT or an ODS EXCLUDE statement.
Tip: | The name is the rightmost part of the path that appears in the trace record. |
briefly describes the contents of the output object. This label also identifies the output object in the Results window.
is the name of the data component that was used to create this output object. The data name appears only if it differs from the name of the output object.
is the name of the table definition that ODS uses to format the output object. You can modify this definition with PROC TEMPLATE. See the EDIT Statement for more information.
is the path of the output object. You can use the path to reference this output object. For example, you could use the path in the ODS OUTPUT statement to make a data set from the output, or you could use it in an ODS SELECT or an ODS EXCLUDE statement.
The LABEL option modifies the trace record by including the label path for the object in the record. See the discussion of the LABEL option.
After you have determined which output objects your SAS program produces, you can specify the output objects in statements such as ODS EXCLUDE, ODS SELECT, and so on. You can specify an output object by using one of the following:
Univariate.City_Pop_90.TestsForLocationis the full path of the output object.
a partial path. A partial path consists of any part of the full path that begins immediately after a period (.) and continues to the end of the full path. For example, if the full path is
Univariate.City_Pop_90.TestsForLocationthen the partial paths are:
City_Pop_90.TestsForLocation TestsForLocation
a label that is enclosed by quotation marks.
"The UNIVARIATE Procedure"
a label path. For example, the label path for the output object is
"The UNIVARIATE Procedure"."CityPop_90"."Tests For Location"
Note: The trace record shows the label path only if you specify the LABEL option in the ODS TRACE statement.
a partial label path. A partial label path consists of any part of the label that begins immediately after a period (.) and continues to the end of the label. For example, if the label path is
"The UNIVARIATE Procedure"."CityPop_90"."Tests For Location"then the partial label paths are:
"CityPop_90"."Tests For Location" "Tests For Location"
any of the partial path specifications, followed by a pound sign (#) and a number. For example, TestsForLocation#3 refers to the third output object that is named TestsForLocation .
Example |
This example shows how to determine the names and labels of the output objects that a procedure creates. You can use this information to select and exclude output objects.
Note: This example uses filenames that might not be valid in all operating environments. To successfully run the example in your operating environment, you might need to change the file specifications. See ODS HTML Statements for Running Examples in Different Operating Environments.
ods trace on / label; |
proc univariate data=statepop mu0=3.5; var citypop_90 citypop_80; run; |
ods trace off; |
See Also |
|
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.