Using Variables

Variables are used to pass information between objects. For example, SQL script has failed and you would like to email the SQL to the developer. Insert <sql> Into email message and it will be replaced with actual SQL

Before any object executed the variable is replaced with the actual value

“Before any object is executed the variable is replaced with the actual value”, this statement is extremely important.

When execution starts variable <Email> does not exist

When the “select '<Email>' as Email” executed the first time everything works as expected, email is sent ETC.

However, when it is executed the second time '<Email>' is replaced with an actual variable value. (remember “before any object executed the variables are replaced with the actual value”)

so instead of “select '<Email>' as Email”

“select 'VariableValue' as Email” is executed

The solution to this problem is very simple. Put another set variable after “Send an email action” and set <Email> to <Email>

There are several ways to create variables

  1. Using script action
  2. Using transformation action
  3. Using calculation object within transformation action
  4. Using Set Variable Action
  5. Using Global Variables

<username>
<computername>
<datetime>

<Project Name>
<Project ID>
<Package Name>
<Package ID>
<Package Item Log Name> <Current Package Item Name>
<Actual Execution Status>
<Execution Status>

<Main Package Log Name>
<Package Item Log Name>
<Rejected Records File Name>

<LAST EMAIL>

<QUEUE_ID>
<SuccessfulActionsCount>
<FailedActionsCount>

<CommonDocumentsDir>
<CommonAppDataDir>
<LocalAppDataDir>
<AppDataDir>

<Version>
<Repository Connection String>

<LicenseRegisteredOwner>
<LicenseCreated>
<LicenseValidUntil>
<LicenseType>
<LicenseIsTrial>
<LicenseSupportExpired>
<LicenseDaysLeft>

Every Action has a predefined set of variables

Once action execution is completed values are assigned to enabled variables

Video Tutorials

For more technologies supported by our ETL Software see Advanced ETL Processor Versions and Visual Importer ETL Versions

Confused? Ask question on our ETL Forum

24/06/2015 12:59 · kevin
  • vimpe/packages/variables.txt
  • Last modified: 26/06/2015 10:37
  • by admin