 Hello, welcome to SS Unitec social decide and this is continuation of SSIS tutorial. So today we gonna discuss about for each loop variable enumerator. In our last video we have discussed about the item enumerator. If you haven't watched last video of this video series, so I would strongly recommend to watch that video. So let's start with variable enumerator. So what variable enumerator does? It is used to enumerate the data inside a variable and we can use this enumerator to loop over the object variable to get the data from that object. For example, we can use it iterate coming from array or array list. Here we have a case std where how we can iterate array list using SSIS for each variable enumerator and display the values. So go to SSGT and here I would like to add one more package. Then I wish to rename this package for each loop variable enumerator. Now so before configuring for each loop container we have to use script task and here we will get the values from array list and those values we are getting from the array list. We need to load those values in an object type variable. So here we need to add a variable and I can use this variable as object type, close this and double click on this script task. So here I want to write the values on this variable. So we can select in redraw variable. Here we can select and click on OK. Now edit script. Here we need to specify our code. So as I have already written the code I need to copy and paste it here. So what this code is going to perform? So first this is our class with array list and icon9 slice a double r. Then I need to add values on this array class. So first is Sunday, Monday, Tuesday, Wednesday, Thursday, Friday and Saturday. And then these values will be loaded in our object type variable which I have created. Now I can save it and close and click on OK. So this script task will be load values from our array list to object type variable. Now by using for each loop container we will read the data from that object. So connect with script task double click on this for each loop container. Go to on collections. Here I need to specify variable. So this is our variable invulator. Here I have to select our object type variable. Go to on variable mapping and here I need to add a new variable and it would contain the data. Data type should be strict click on OK and this would be 0. Now click on OK. So we have done our for each loop container. Inside this for each loop container I am going to use one more script task and it will read the data from our string type variable. So here we can select our string type variable that is your data. Copy this and click on edit a script here. I just want to display our data. So I can use message box dot so and here I can use DTS dot variables inside this variable I need to use variable name then value dot to a string. I can save it and close now click on OK. So once our package will be executed it will read the data from our array list and it loads the data into our object type variable. This task will be performed by a script task then so by using for each loop container it will read the data from our object type variable and then by using script task we will read the data one by one. So save it and execute our package. So first time it should get Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday. So by using for each variable innovator we are going to get the data from our array list. So thank you so much for watching this video. If you like this video please subscribe our channel to get many more videos. And don't forget to press the bell icon to get the notification of our newly uploaded videos. Thank you so much.