Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3184

CCLScript Window Iterator in Flex Script

$
0
0

Could someone please provide an example of using a window iterator within a Flex Script?

I would like to create an iterator, so that once window size hits 100 (the jumping window), I can output each record to an output stream.


The following is not producing any records in the output stream.


CREATE WINDOW Win1 schema Schema1

KEEP EVERY 100 ROWS;

 

 

 

CREATE Flex CreateWindowFlex

   IN Win1

   OUT OUTPUT STREAM Out1

DECLARE

END;

ON (Win1)

typeof(Win1) record;

record := getNext(Win1_iterator);

while (not(isnull(record))){

     output setOpcode(record, insert); // note record at index 0 is

      record := getNext(Win1_iterator);

      }

};
END;

 

Thanks

Ilana



Viewing all articles
Browse latest Browse all 3184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>