Types of Variables

Explanation Of Variables in Automation Anywhere

✔️ Variables are one of the most important aspect of programming as they help to
store information that are subject to change during program execution.

✔️ Similarly, during process automation, you may need to store information
which may need to be manipulated,fetched or transferred to another application.

✔️ Due to this reason, Automation Anywhere provides variables to store values
that can change depending on conditions or on information passed during task execution.

★ Note: Information in the variables may change, but the variable name will not change.
✔️ Based on the declaration of the variables, Automation Anywhere defines two types of variables.

✔️ These include Local or User defined variables and Default or system variables.

✔️ The System or Default variables are pre-defined by Automation Anywhere.
As the name suggests,they are by default available when you install
the Automation Anywhere Enterprise Client application and available in all tasks.

✔️ On the other hand, Local or User defined variables are declared by the user
who record the task.These variables are available only within the task it is created.

Note:

For all Automation Anywhere commands,variables are supported in fields that have the light bulb symbol present.
Use "F2" function key to select and insert the required variable from the list of variables available.

✔️ Based on the values that local variables hold, there are four types of local variables.

. List
. Array
. Value
. Random

Ⅰ.List: It holds multiple values in single dimension. It is used for retrieving multiple values,
one by one, such as sending email to multiple recipients, passing different values inside of a loop,
and searching multiple web addresses.

Ⅱ.Array: It is a multi-dimensional variable that holds multiple values in rows and columns.
These are used for:

💎 Extracting data from web pages.
💎 Extracting many rows of data from an excel spreadsheet or a database.
💎 Reading or writing data from/to a legacy system, an ERP system, or another application.
💎 Filling out order form with different fields from excel to database.

Ⅲ.Value: It is created when a user needs to hold a single value and use it in multiple places.

Ⅳ.Random: These are useful when you need to generate a random string or random number.

✔️ These are commonly used in Strings which generates test data as input for fields or forms;
or Numerical which generates ID numbers in batch.

💻 Variable Manager Tab:


✔️ You can use the variable Manager tab to create new user variables.
These variable manager tab also allows you to modify,delete,copy and paste the variables within the automation tasks.

✔️ By default variable manager displays two pre-defined user variables, which include my-list variable and prompt assignment.

✔️ Use the my-list-variable if you need to store list of values and use the prompt assignment variable to store a single value.

✔️ You can also use the variable manager tab to view the list of variables that Automation Anywhere provides.
Just click on show system variables link to check the available System variable to be used to automate a task.


💻 Variable Operation Command:

✔️ This Command allows you to assign or reset Local variables.

✔️ Sometimes, when recording a task, you may need to reinitialize the value of a local variable
to reuse it in another instance within the same task. In such cases,
you can use Automation Anywhere variable operation command that allows you to assign or reset a local variable.

✔️ This command can also be used to reset the value of, not all, but for few system variables.

Note:- I will be updating this blog frequently.✍

Thank you for visiting this blog☕️

“Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment”



To Learn Mainframe Modules (Cobol, Jcl, VSAM, DB2, CICS): Click here

For Latest Job Updates: Click here

For Online Shopping: Click here

You Might Also Like

0 Comments