Subscribe Bookmark RSS Feed

How to Read File Metadata

csoon1

Community Trekker

Joined:

Feb 9, 2016

I have a need to read a file metadata (specifically the "Date Created" information). The reason is that the .csv file I am opening has a column for "Time" but ironically not the date which means that if there are several entries spanning over a week of continuous data recording, there is no way of knowing which time entry is for which day.

If I can extract the "Date Created" information I most likely will be able to make use of the data (since entries are sequential with the first row being the first entry therefore the oldest time). Please let me know if extracting this information is possible either before or opening the file in JSL. If you have a code snippet it would be very helpful. Thanks.

1 REPLY
txnelson

Super User

Joined:

Jun 22, 2012

Here is an example on how to read the file creation date.  It is the example from:

     Help==>Scripting Index==>Creation Date

Names Default To Here( 1 );

Format(   Creation Date( "$SAMPLE_DATA/Big Class.jmp" ), "ddmonyyyy:h:m:s");

Jim