I don't know if it's a solution for you but I propose the following jsl :
strPathFile = "C:\mytest.jmp";
//Save batch file to get date file : create DateFile.txt containing date
Save Text File(
"C:\GetDate.bat",
"for %%x in ("||strPathFile||") do echo datetime=%%~tx >> C:\DateFile.txt";
);
//Launch batch file
Open("C:\GetDate.bat");
wait(1);//wait to let time running batch file
//Open DateFile.txt containing date file in a jmp data table
Open("C:\DateFile.txt",
columns( c000001 = Character ),
Import Settings(
End Of Line( CRLF, CR, LF ),
End Of Field( Comma ),
Strip Quotes( 1 ),
Use Apostrophe as Quotation Mark( 0 ),
Scan Whole File( 1 ),
Treat empty columns as numeric( 0 ),
Labels( 0 ),
Column Names Start( 1 ),
Data Starts( 1 ),
Lines To Read( All ),
Year Rule( "10-90" )
)
);