Consider the following scenarios:
We can use functions in filenames to do it as follows
GETSYSTEMVARIABLE('SYSTEM_DATE')will return current date in ‘YYYYMMDDHHNNSS’ format
If we want only part of the date we can use LeftString(String,Count):String for example
LeftString(GETSYSTEMVARIABLE('SYSTEM_DATE'),8)will return only date part.
Now more complicated example for loading yesterday’s data;
LeftString(DecDateS(GETSYSTEMVARIABLE('SYSTEM_DATE'),'YYYYMMDDHHNNSS', 'DAY',1),8)Another example:
C:\Data{GetSystemDate('YYYYMMDD')}.csv
For complete reference of available functions consult Supported Functions List
For more technologies supported by our ETL Software see Advanced ETL Processor Versions
Confused? Ask question on our ETL Forum