QUERY_TAG= LIBNAME Statement Option

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

Valid in: LIBNAME statement that connects to an external data source
Category: Data Set Control
Default: none
Data source: Snowflake
Note: Support for this option was added in SAS 9.4M9.
See: QUERY_TAG= data set option

Table of Contents

Syntax

QUERY_TAG="string"

Required Argument

string

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

Last updated: February 3, 2026