Table of Contents

Search

  1. Preface
  2. Introduction to PowerExchange for SAS
  3. PowerExchange for SAS Installation and Configuration
  4. SAS Connections
  5. SAS Data Objects
  6. SAS Run-Time Processing
  7. Appendix A: SAS Data Types Reference
  8. Appendix B: SPI Server Configuration Parameters
  9. Appendix C: SAS Error Messages

PowerExchange for SAS User Guide

PowerExchange for SAS User Guide

Session and User Identification

Session and User Identification

The name of the SPI Server user who accesses the SAS environment is passed to the environment where SAS runs.
The values of this property can thus be used for conditional initialization logic in the SAS autoexec script.
The following system variable provides the user name to the SAS process:
System Variable
Available
Description
TBPC_USER_NAME
client/server
Name of the connected SPI Server user.
You can use the SAS function sysget() to retrieve system variables.
For example:
/* Store system variables into SAS macro variables: */ usrname = sysget("TBPC_USER_NAME"); /* Use the SAS macro variables to code logic: */ ............. ............. /* End of logic */
When the Developer tool initiates a connection to the SAS machine, the system variables that are unavailable for client connections contain no meaningful information. The system variable values default to
"_NONE_"
.

0 COMMENTS

We’d like to hear from you!