I have created a simple package to zip a file. I am determining the file to be zipped dynamically at runtime using the Script task. I have a package variable defined as ReadWrite in the script task; I am attempting to store the dynamically determined file name to this package variable.
The code I am using to assign the value to the variable is:
Dim LatestBackupName As String Dim ZipName As String Dts.Variables("FileName").Value = ZipName & " " & LatestBackupName
I have set a breakpoint in the code to step into each statement. I am able to see that the "FileName" variable is being assigned the appropriate value. However, once the Script task completes, the value assigned to FileName is not stored in the variable. It is as if it gets the value during the script task and then loses it upon completion.
Am I going about setting the variable value wrong
Any guidance is appreciated.

Pckg variable not getting set
Andrew Cheung