Originally posted by: repanzer1
I don't believe there is a specific function to handle that task...unless someone else knows it...but you can write a small batch file which does a "DIR" (for DOS, or LS for Unix)..which returns the information, then parse the timestamp out of it. You can make the "dir" statement try to return as little info as possible, such as if the filename you’re looking for starts with an S,
Dir S*
When I hit DIR on my PC, I get;
M:\>dir
Volume in drive M is ADCX42M$
Volume Serial Number is 2201-01D5
Directory of M:\
10/07/2004 08:06 AM <DIR> My eBooks
12/01/2011 10:37 AM 0 N8UPDATE.TXT
09/08/2011 07:36 AM <DIR> My Music
04/08/2011 07:18 AM <DIR> My Videos
04/08/2011 07:18 AM <DIR> Updater5
10/11/2011 08:58 AM 381 emailtext.txt
I could easily build a type tree that knows where there timestamp is so I have it as a type from an input card. If you return multiple files from the DIR statement, you can do "GETFILENAME" in your first output card field, then in the next field, extract the timestamp from the record with the filename:DIR_return=GETFILENAME.
There are 10 types of people in this world. Those who understand binary and those who don't.
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange