This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
bw:using_variables [2019/10/23 14:21] akoehler Updated and changed the example for the UDV section |
bw:using_variables [2019/10/23 14:46] (current) |
||
|---|---|---|---|
| Line 154: | Line 154: | ||
| In the variables tool there is a **User Defined Variable ** of " | In the variables tool there is a **User Defined Variable ** of " | ||
| - | {{ : | + | {{ : |
| In the SQL tool step you can reference the **User Defined Variable** of " | In the SQL tool step you can reference the **User Defined Variable** of " | ||
| Line 168: | Line 168: | ||
| ===== Step Variable Example ===== | ===== Step Variable Example ===== | ||
| - | In the step marked “4” in the illustration above we are writing the output of the SQL step to a file. | + | In this example |
| - | {{: | + | Below is the workflow we are using for the example. |
| - | In this step, we make use of both Step and User variable type. | + | {{ : |
| - | To make the file name unique each time it is created, we use the “time stamp” user variable created by the VBScript step. As noted earlier, we can use either the output name from the VBScript step, or the value created | + | Note the fields |
| - | {{:bw:varimage10.png?479x232}} | + | {{ :bw:stepvariablessql.png?482x384 |}} |
| + | |||
| + | Next when going to the file writer step you will press [F4] and select the variables from the SQL step. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | You can see each step variable in the " | ||
| + | |||
| + | {{ : | ||
| - | C: | ||
| - | The values in the body section of the file (the actual data records) are step variables that come from the previous SQL Command step (3). | ||
| - | {{: | ||