Script function "SYS_USER_NAME" and predefined variable "&$USER_FL#" truncate user name if it contains space character
Article ID: 84558
CA Automic Workload Automation - Automation Engine
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.
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:
:SET &LOGLN# = SYS_USER_LNAME() :PRINT "Login information: User's first and last names are &LOGLN#."
Expected: Both :PRINT lines should return "John James Doe Doe". Actual: Both return "John Doe" only.
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.