Actions

In order for Data Splitter to produce any results actions must be defined.   Actions can be run :

They are defined via the Definitions menu :

Actions can also be defined for any node via the node's drop-down menu.

To define or modify an action :

The following list of actions outputs the current file name to two output streams -

  1. a text file,
  2. an HTML file :
screen shot:  action group that sends current input file name to result files

The actions ...

Append to

Append data to a target.   Data includes :

Targets include :

Similar to the Send to action (below), which overwrites the target, if applicable.


Clear variable

Clear the indicated variable


Execute action group

Execute a group of actions.   See the action groups topic, below.


Execute SQL

Execute an SQL statement contained in a variable.


Execute UDF

Execute a user-defined function.


Halt

Stop scanning the current input stream or stop the run.   See the Halt topic.


Increment counter

Add a positive number to a counter.


Output table row

Add a new row to the specified database table.


Return

Return from processing the current node group.


Run

Run a Data Splitter scan on a variable or input stream data using a node group.   This allows the variable or recognized input data to be treated as a separate input stream.

This is a powerful feature that allows scanning of "streams within streams".   Also known as "recursion".


Send to

Send data to a target, overwriting if applicable.   Similar to the Append to action (above).   Overwrites variables, but equivalent to "Append to" for file destinations.


Set counter

Set a counter to a value.


Start node =

Set the start node to a designated node.

Special considerations regarding the start node assignment action

1. If this action is used to reassign the start node, the new assignment remains in effect until :

So, if the start node is initially node A, and the start node assignment action reassigns it to node B, node B will be the start node :

In most cases, if the start node assignment action is used on a node, it should also be performed in either the pre-run or (more likely) the pre-stream actions to set the desired start node appropriately.

2. Start nodes should be given unique tags.   When the start node assignment action is performed Data Splitter scans its internal list of nodes until it finds the first matching tag.   If two nodes share that tag the first one in the list will be used.   Note that the internal list is not guaranteed to be in node number order.   Therefore, using the start node assignment action to set the start node to a node with a non-unique tag may produce unpredictable results.


Action groups

Actions can be grouped into a "procedure" called an action group, which can be called with the Execute action group action.   This action has one required parameter, the action group tag.

"Execute action group" has a checkbox option, "Execute once per input stream".   Executing an action group oncer per input stream can be useful, for example, when performing a text search.   An action group called "OutputFileName" can be created to output the file name and formatting information.   This action group is called when the search text is recognized, but only "once per input stream".   This way, the file name is output just once for each file containing the search text.



*Home *Download *Help *Site index *FAQs *Support