GET_ATT_PLAIN

Use the GET_ATT_PLAIN script function to retrieve the value of a task attribute as defined during the generation of the task. The script function does not resolve variables.

This function is similar to the GET_ATT script function, with the difference that script, object and predefined variables are replaced by values in the attribute. GET_ATT_PLAIN retrieves the variable name instead of the value. For more information, see GET_ATT.

Syntax

GET_ATT_PLAIN (Attribute)

Parameters

  • GET_ATT_PLAIN
    Retrieves the variable name of a task attribute

  • Attribute
    Name of the attribute to read
    Format: AE name, script literal or script variable
    More Information: List of Object Attributes

Note: GET_ATT and GET_ATT_PLAIN do not retrieve values of placeholders for VARA objects that are enclosed in curly brackets {}.

Example

The following example uses a script variable to define an object attribute (the internal account) of a Job. The script retrieves the content of the INT_ACCOUNT attribute, returning both the script variable name and the resolved variable value. The results are printed in the activation report of the Job.

:PUT_ATT INT_ACCOUNT = "&&test#"

:SET &test# = "testvalue"

:SET &att# = GET_ATT(INT_ACCOUNT)

:SET &attplain# = GET_ATT_PLAIN(INT_ACCOUNT)

:PRINT "The variable value is &att#"

:PRINT "The variable name is &attplain#"

The lines in the activation report look like this:

2019-04-15 12:19:19 - U00020408 The variable value is testvalue

2019-04-15 12:19:19 - U00020408 The variable name is &test#

See also: