Using SSIS variables in a script
I have an SSIS package that gets files from an FTP site. All of the files are downloaded at once. Then, SSIS loops through each file sets a variable to the file's name. Then it processes the file. This is the script to get the files...
As you can see,
After all of the files are processed, SSIS exits the loop and runs the script to delete the files.
Ideally, I would like to include the delete task as part of the file processing so that after the file is archived, it should get deleted from the remote site. I know which file to delete because the file name is stored as an SSIS variable.
The question I have is....is it possible to pass this variable as part of the
Thanks in advance,
Sam
option batch on option confirm off open sftp... get /from-cfs/*Redemptions*.* \\SVRDWDB\etl\CoinFlip\ close exit
Redemptions
has wildcards since there could be several for different times of the day.
After all of the files are processed, SSIS exits the loop and runs the script to delete the files.
Ideally, I would like to include the delete task as part of the file processing so that after the file is archived, it should get deleted from the remote site. I know which file to delete because the file name is stored as an SSIS variable.
The question I have is....is it possible to pass this variable as part of the
rm
step? If so, how?
Thanks in advance,
Sam