QUERY_TAG= Data Set Option

Specifies an optional string that you can use to tag queries to your data source.

Valid in: DATA and PROC steps (when accessing data that is in an external data source)
Category: Miscellaneous
Default: none
Data source: Snowflake
Note: Support for this option was added in SAS 9.4M9.
See: QUERY_TAG= LIBNAME option

Table of Contents

Syntax

QUERY_TAG="value"

Required Argument

value

specifies an optional string that you can use to tag queries to your data source. Query tag strings can be up to 2,000 characters.

Last updated: February 3, 2026