PROGRAM_NAME= LIBNAME Statement Option

Specifies the string to use as the application identifier for DB2 monitoring.

Valid in: SAS/ACCESS LIBNAME statement
Category: Data Set Control
Alias: CORRELATION_ID
Default: none
Data source: DB2 under UNIX and PC Hosts
Note: Support for this LIBNAME option was added for SAS 9.4.
Example:
LIBNAME db2data DB2 DB=sample USER=db2 PWD=db2pwd PROGRAM_NAME=’SAS on wrks1’;

Table of Contents

Syntax

PROGRAM_NAME='user-defined-string'

Details

The string that you specify overrides the default application identifier that DB2 chooses. If you are connecting to a host DB2 system through DB2 Connect, the first 12 characters of this string are used as the correlation ID on the host.

Last updated: February 3, 2026