Script function "SYS_USER_NAME" and predefined variable "&$USER_FL#" truncate user name if it contains space character

book

Article ID: 84558

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Error Message :
N/A

The Script function "SYS_USER_NAME" and predefined variable "&$USER_FL#" do not return the entire user name if a space is used.

Using a space truncates the rest of the first and / or last name.

Investigation
  • Connect to the AWI or Java GUI and edit your user object to add a second first name and/or a second last name.
    For example if your first name is "John" change it to "John James" and your last name is "Doe" change it to "Doe Doe".
  • Then add a SCRI object with the content below:
:PRINT &$USER_FL#
:SET &LOGLN# = SYS_USER_LNAME()
:PRINT "Login information: User's first and last names are &LOGLN#."

Results

Expected: Both :PRINT lines should return "John James Doe Doe".
Actual: Both return "John Doe" only.

Cause

Cause type:
Defect
Root Cause: Script function SYS_USER_LNAME does not return the full name if SPACES are used in first or last name. Value is cut after first space.

Environment

Release: AUTWAB99000-11.0-Automic Workload Automation-Base Edition
Component:

Resolution

Update to a fix version listed below or a newer version if available.

Fix Status: In Progress

Fix Version(s):
Automation Engine 12.2.0 - Available
Automation Engine 12.1.2 - Available
Automation Engine 12.0.5 - Available
Automation Engine 11.2.7 - Available

Additional Information

Workaround :
Use "_" to separate names. For instance " John_James Doe_Doe".