Menu

Doc Main Page: SAS log of reporting job: "en/logs/run_all.log" - should be "en/logs/log4sasunit_run_all.log"

Anonymous
2023-03-09
2023-03-24
  • Anonymous

    Anonymous - 2023-03-09

    Hi,
    After executing "example/bin/sasunit.setup.9.4.en.cmd" and then "example/bin/sasunit.9.4.windows.en.overwrite.full.cmd" (SASUnit v2.1), I find that the doc main page (example/en/doc/overview.html) reports (and links to) "SAS log of reporting job" = "en/logs/run_all.log", however that file does not exist.
    Shouldn't it refer to "en/logs/log4sasunit_run_all.log" instead ?
    Where is the code that generates that value ?

    Many thanks

     
  • Klaus Landwich

    Klaus Landwich - 2023-03-24

    Hi,
    your perfectly right.

    I adjusted the paths to the folders and the path to the new location of the log file. Bit did not check this link.

    The respective lines are in the program: _reporthomehtml.sas

    In lines 167 to 173 the option LOG is evaluated to get the name of the log file.
    Obviously the option log does not conform to the name of the overall log file specified in logconfig.xml

    I will check on an alternative implementation and come back to you.

    My findings will be carried over to the next release.

    Thanks for the feedback.

    Regards
    Klaus

     
  • Klaus Landwich

    Klaus Landwich - 2023-03-24

    Hi,

    I did not find a way to read existing log4sass_appenders and query their file location.
    So I coded the name of the log file explicitly.

    Please change lines 167 to 173 as follows:
    Old version

             if getoption("LOG") ne "" then do;
                idColumn = "014";
                parameterColumn="^_";
                valueColumn=catt ('^{style [flyover="', getoption("LOG"), '" url="', "file:///" , getoption("LOG"), '"]', resolve('%_stdPath (i_root=&g_root, i_path=%sysfunc(getoption(log)))'), "}");
                SortColumn+1;
                output;
             end;
    

    New version

             idColumn = "014";
             parameterColumn="^_";
             valueColumn=catt ("^{style [flyover=""&g_logFolder./log4sasunit_run_all.log"" url=""file:///&g_logFolder./log4sasunit_run_all.log""]", resolve("%_stdPath (i_root=&g_root, i_path=&g_logFolder./log4sasunit_run_all.log)"), "}");
             SortColumn+1;
             output;
    

    Sorry for that bug.

    Regards
    Klaus

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.