Automatic Variables
info
Available for Flex (SSIS) only
While executing packages in the managed environment, you can make use of system resources (like disk space) according to your billing plan. To enable easier access to these resources COZYROC Cloud will detect some user-defined variables in your package based on a naming convetion and set their values.
Currently supported automatic variables
Variable name | Automatic value |
---|---|
CC_TEMP_DIR | Full path to your managed temp folder |
Example
You want to create a temporary file data.csv
during execution.
- Create a SSIS package
- Create a package variable called
CC_TEMP_DIR
with data typeString
- Set the variable default value to a folder on your machine so you can use it during development. The value will later be overwritten by COZYROC Cloud
- Create a
File Connection
in modeCreate file
. - Right-click the connection select
Properties
and thenExpressions
- For
Property
selectConnectionString
- For
Expression
set@[User::CC_TEMP_DIR] + "\\data.csv"
- Finalize any additional logic in your package
- Upload package to COZYROC Cloud
- Execute the package. The
data.csv
file will be placed in your managed temp folder
note
Any files created during an execution in the managed environment are deleted after the execution ends.