我试图复制旧的" control break processing"在SSIS。 我想用一个共同的值对我的记录进行分组,例如市郊。
因此,按郊区对记录进行排序,然后读取属于第一个郊区的记录并处理这些记录。然后继续并收集下一组/郊区等。
在COBOL中足够简单,但无法确定SSIS中的循环或其他任何东西是否也可以这样做。
What is a control break? (COBOL) 这是控制中断过程的伪代码
阅读第一条记录
--Seed control key
@Suburbkey = rs(“Suburb”)
While Not rs.oef
If rs(“Suburb”) <> @SuburbKey then
--Process Batched records
Process @BatchRS
--Empty batched records
@BatchRS = null
End if
@BatchRS.add = Rs
@SuburbKey = rs(“Suburb”)
rs.MoveNext
End while
答案 0 :(得分:0)
这是你需要的吗?收集一些工作项,放入一个System.Object变量,并在每个(for)循环中逐个处理它们。