Script Statement: Tries to resolve all variables (Prompt values, System variables, Script variables, Variable objects) contained in the string.
:RESOLVE String
Syntax |
Description/Format |
---|---|
String |
Script string. May contain any number of variables (Prompt values, System variables, Script variables, Variable objects) which shall be resolved. Format: script literal |
This Script statement works like a combination of :SET and RESOLVE_VAR. Any variableIt stores or retrieves values dynamically at runtime. An individual Automation Engine object type. contained in the string will be resolved.
A variable that can not be resolved will remain unchanged. The resulting value will be assigned to the variable.
This example sets the Script variable &ret# to the string "This is version ", followed by the value of the SQLI Variable objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task VARA.SQLI_TEST, which includes SQL that returns the version and build numbers. The second line prints it out.
:RESOLVE &ret# = "This is version {VARA.SQLI_TEST}"
:PRINT &ret#
The reportA report provides more detailed information about a task's execution or a component. output for this example would look something like this:
2014-11-18 11:50:22 - U00020408 This is version 11.0.0+build.2751
The following example sets the Script variable &var# to the string "{VARA_RESOLVE,key1,1}" and it resolves this Script variable based on a key 1, value 1 of VARA_RESOLVE, which is the name of a static Variable object. Then it prints the &var# Script variable.
:RESOLVE &var# = "{VARA_RESOLVE,key1,1}"
:PRINT &var#
The report output for this example would look something like this:
2014-11-18 17:50:32 - U00020408 {VARA_RESOLVE,key1,1}
2014-11-18 17:50:32 - U00020408 this is the main key
See also:
Script element | Description |
---|---|
Deletes one or all values of a static Variable object. | |
:PUT_VAR | Stores a value in a static Variable object. |
:SET_SCRIPT_VAR | Sets the values of script variables by indirect access. |
GET_SCRIPT_VAR | Returns the values of script variables by indirect access. |
|
|
Prepares the processing of a data sequenceAn internal listing of Console outputs or lines of Variable objects, etc. The lines of a data sequence can be accessed by using a PROCESS loop or the script element GET_PROCESS_LINE. The script elements PREP_PROCESS* generate data sequences. (values of a Variable object). |
Script Elements - Read or Modify Objects
Agent Variables
Sample Collection:
Database Maintenance with Options
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |