Hi everyone,
one of our customers (Bundesdruckerei) previously used the windows task sheduler to publish data into JMP Live 16 regularly.
They upgraded to JMP Live 17 and now want to do that using ODBC to import multiple files from a folder on the server.
Here is an old script they provided us for reference:
current_day = Short Date( Today() );
current_week = Week of Year( Today(), 3 );
last_week = current_week - 1;
current_year = Year( Today() );
start_date = Informat( current_day ) - ( In Days (28));
start_date_pentaho = start_date - ( In Days (10));
end_date = Informat( current_day );
//daten import with only csv files
//create a dynamic request for the year folder
dt_stationlogs = Multiple File Import(
<<Set Folder( \\scisilon-cifs.scp.bdr.de\reporting\stationlogs\2023\ ),
<<Set Show Hidden( 0 ),
<<Set Subfolders( 1 ),
<<Set Name Filter( "*.csv; " ),
<<Set Name Enable( 1 ),
<<Set Size Filter( {54, 65323065} ),
<<Set Size Enable( 0 ),
<<Set Date Filter( {start_date, end_date} ),
<<Set Date Enable( 1 ),
<<Set Add File Name Column( 1 ),
<<Set Add File Size Column( 0 ),
<<Set Add File Date Column( 0 ),
<<Set Import Mode( "CSVData" ),
<<Set Charset( "Best Guess" ),
<<Set Stack Mode( "Stack Similar" ),
<<Set CSV Has Headers( 1 ),
<<Set CSV Allow Numeric( 1 ),
<<Set CSV First Header Line( 1 ),
<<Set CSV Number Of Header Lines( 1 ),
<<Set CSV First Data Line( 2 ),
<<Set CSV EOF Comma( 0 ),
<<Set CSV EOF Tab( 0 ),
<<Set CSV EOF Space( 0 ),
<<Set CSV EOF Spaces( 0 ),
<<Set CSV EOF Other( ";" ),
<<Set CSV EOL CRLF( 1 ),
<<Set CSV EOL CR( 1 ),
<<Set CSV EOL LF( 1 ),
<<Set CSV EOL Semicolon( 0 ),
<<Set CSV EOL Other( "" ),
<<Set CSV Quote( "\!"" ),
<<Set CSV Escape( "" ),
<<Set XML Method( "guess" ),
<<Set XML Guess( "huge" ),
<<Set XML Settings( XML Settings() ),
<<Set JSON Method( "guess" ),
<<Set JSON Guess( "huge" ),
<<Set JSON Settings( JSON Settings() ),
<<Set Import Callback( Empty() )
) << Import Data;
Has someone experience or an idea how to set this up with the JMP Live 17 sheduler? The set folder command does not work for them so far.
Many thanks,
Jonas