Menu

Hitting Errors When Executing _XCMD Macro

Anonymous
2021-11-11
2021-12-20
  • Anonymous

    Anonymous - 2021-11-11

    I'm hitting an execution error when trying to batch submit some unit testing programs. Here's the log output. We currently operate on a SAS Grid housed in a linux environment:

    ======== OS Command End ========
    MPRINT(RUNSASUNIT.RUNPROGRAMSPAWNED._EXECUTECMDFILE): ;
    MAUTOLOCDISPLAY(_XCMD): This macro was compiled from the autocall file /sasprod/users/reaston/pds_gtl_macros/unit_testing/saspgm/sasunit/linux/_xcmd.sas
    MAUTOLOCDISPLAY(_DELFILE): This macro was compiled from the autocall file /sasprod/users/reaston/pds_gtl_macros/unit_testing/saspgm/sasunit/_delfile.sas
    ======== OS Command Start ========
    ERROR(SASUNIT): Sysrc : 116 -> An Error occured
    NOTE(SASUNIT): SYSEXEC COMMAND IS: "/saswork1/SAS_work6CF1000113A4_evhprdsasnod-05/SAS_work9240000113A4_evhprdsasnod-05/_runprogramspawned.cmd" > "/saswork1/SAS_work6CF1000113A4_evhprdsasnod-05/SAS_work9240000113A4_evhprdsasnod-05/___log.txt"
    MPRINT(RUNSASUNIT._RUNPROGRAMSPAWNED._EXECUTECMDFILE._XCMD): DATA _NULL
    ;
    MPRINT(RUNSASUNIT.RUNPROGRAMSPAWNED._EXECUTECMDFILE._XCMD): infile "/saswork1/SAS_work6CF1000113A4_evhprdsasnod-05/SAS_work9240000113A4_evhprdsasnod-05/___log.txt" truncover;
    MPRINT(RUNSASUNIT._RUNPROGRAMSPAWNED._EXECUTECMDFILE._XCMD): input;
    MPRINT(RUNSASUNIT._RUNPROGRAMSPAWNED._EXECUTECMDFILE._XCMD): putlog _infile
    ;
    MPRINT(RUNSASUNIT._RUNPROGRAMSPAWNED._EXECUTECMDFILE._XCMD): RUN;

    NOTE: The infile "/saswork1/SAS_work6CF1000113A4_evhprdsasnod-05/SAS_work9240000113A4_evhprdsasnod-05/log.txt" is:
    Filename=/saswork1/SAS
    work6CF1000113A4_evhprdsasnod-05/SAS_work9240000113A4_evhprdsasnod-05/
    _log.txt,
    Owner Name=reaston,Group Name=domain users,
    Access Permission=-rw-r--r--,
    Last Modified=11Nov2021:08:11:52,
    File Size (bytes)=220

    ERROR: Unrecognized SAS option name
    .
    ERROR: Unrecognized SAS option name
    .
    ERROR: Unrecognized SAS option name
    .
    ERROR: (SASXKRIN): KERNEL RESOURCE INITIALIZATION FAILED.

    The permissions output concerns me, and may be why I am seeing this. But, I don't understand the linux commands well enough to confidently tell what is going on.

    Full log attached. Let me know what else I can provide to help resolve this.

     
  • Klaus Landwich

    Klaus Landwich - 2021-11-12

    Hi there,

    I will investigate on it.

     
  • Klaus Landwich

    Klaus Landwich - 2021-12-20

    Hi there,

    sorry for taking so long to answer.

    It seems to me that SASUnit ist trying to redirect the log file to a log named "001.log" but already is writing 001.log.

    Do you have a nesting call to initestcase or perhaps youare missing a call to endtestcase?

    Please check your test scenario.

    Regards
    Klaus Landwich

     

Anonymous
Anonymous

Add attachments
Cancel