19. func: Special interpretation of input


Not all data sources are simple collections of records and words. For instance, a DB2 table contains rows and named variables, and these are to be read as result sets, governed by some SQL. Combining this with RXS, it would probably be beneficial if the action block were triggered every time DB2 fetches a row. To accomplish this, state general order func='sql', and follow the instructions in Section 20 to write the SQL to govern the action.

Here is the list of values for func, constituting the list of data sources RXS can read:


Default - when func is not given a value in the general orders for the action block - is to interpret input as described in Section 9.

Whatever value func is given, the result is the triggering of the action block by a number of instances of some set of data. The variable cont is implemented the same way in all cases: cont holds the value ',' in all triggering of the action block except the last one, where cont holds the value ' '.