can ssis script component output an array -


i have 1 row contains 6 columns: id, c1, c2, c3, c4, c5

what trying do:

for each id, sequence check: c1-c2, c2-c3, c3-c4, c4-c5, , pair not equal each other, assign flag indicate.

i trying use script in ssis:

create array c[] = {c1,c2,c3,c4,c5} , array flag[]

 for(i=1,if<=4,i++)         for(j=i+1,j<=5,j++)             if c[i] != c[j]                 flag[i] = 1 

in way, there 4 flag output against c1,c2,c3,c4 1 id, whcih change granular

could that?

spss can this

string flag (a1)

execute.

vector c=c1 c5.

loop #i=1 4.

loop #a=(#i + 1) 5.

  • do if c(#a) != c(#i)

  • compute flag=1.

  • break.

  • end if.

  • end loop.

end loop.

execute.

i generate 4 flag columns in sql case statements:

case c1 = c2 0 else 1 end flag1 case c2 = c3 0 else 1 end flag2 

and on.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -