Menu

Different behavior when replicated on linux

2017-09-15
2017-09-15
  • Gu Gonçalves

    Gu Gonçalves - 2017-09-15

    i have test this example in windows ( note: the jobExample.sas is a DIS Job and the output is sasunit_table)

    /*-- Creation of base datasets -----------------------------------------*/
    %initTestcase(i_object=jobExample.sas, i_desc=Check if Table is create)
    %jobExample
    %endTestCall()
    
    %assertTableExists (i_libref=ditstsrc        
                       ,i_memname=sasunit_table
                       ,i_desc   =Table was successfuly created?
                       )
    
    %assertRecordCount (i_libref    =ditstsrc
                       ,i_memname   =sasunit_table
                       ,i_recordsExp=490
                       ,i_desc      =Does table contain all expected Rows?
                       )
    
    %assertLog (i_errors=0, i_warnings=0)
    %endTestCase()
    
    /** \endcond */
    

    When i run this table, sasunit run jobExample.sas (create de sasunitable) and execute the tests,

    but.....

    I'm testing the same example in linux, but i have one error "no macro" recover and the sasunitable is not create so the test not execute.

    Note: if a run jobExample.sas manual and after execute the test works..

    But I do not understand why in Windows it runs the jobExample and creates the table and in linux it does not

     

    Last edit: Gu Gonçalves 2017-09-15
  • Klaus Landwich

    Klaus Landwich - 2017-09-19

    Hi Gustavo,

    with that limited information it is hard to give an answer. So my first guess would be that your macro jobexample cannot be found under linux.

    Could you succesfully start the SASUnit examples under linux? Just to exclude some sources of errors.

    Which version of SASUnit do you use under Windows and Linux? Sometimes there was a problem with built-in macros in version 1.6.

    Could you please tell me more about the error message.

    Regards
    Klaus Landwich

     
    • Gu Gonçalves

      Gu Gonçalves - 2017-09-20

      Hi Klaus, thanks for your answer.

      So,

      • the job can be found;

      • Yes, the examples work in linux and windows

      • The SASUnit version is the same 1.7 and the SAS Base 9.4

      When in windows, the SASUnit run jobExample.sas , in linux they give a error that not
      Does not recognize a macro

      Regards

       

      Last edit: Gu Gonçalves 2017-09-20

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.