USERNAME Function

In DataFlux Data Management Studio, the USERNAME function returns the user name of the user that is logged in to the operating system. However, in DataFlux Data Management Server the USERNAME function returns the account name for the Data Management Server process.

Category: String
Returned data type: String

Syntax

USERNAME ( )

Arguments

This function does not take arguments

Examples

// Declare the string value for the function

string user

 

// For Data Management Studio, use the USERNAME

// function to get the operating system user name

user = username()

 

// For Data Management Server, use the USERNAME

// function to get the account name for the Data

// Management Server process.

user = username()