COGNOiSe.com - The IBM Cognos Community

ETL, App Development and other tools => COGNOS DecisionStream/Data Manager => Topic started by: terry_stjean on 29 Jul 2013 12:28:49 PM

Title: Get text file date/time
Post by: terry_stjean on 29 Jul 2013 12:28:49 PM
In Data Manager, I get check if a file exists on the server. Is there a way to retrieve the last modified date/time for the file?
Title: Re: Get text file date/time
Post by: MFGF on 30 Jul 2013 08:41:33 AM
I'm not aware of a way directly. If you could figure out how to do it from the command line, you could in theory write a batch file or shell script to populate an environment varaible with the date/time, then read this from within DM? Not sure if it's possible, though.

MF.
Title: Re: Get text file date/time
Post by: terry_stjean on 30 Jul 2013 10:06:24 AM
Thanks,
Interesting suggestion.
How do you read an environment variable in Data Manager?