ESP Workload Automation

  • 1.  Text Mon wob to complete successfully whether text is found or not

    Posted Mar 02, 2017 09:56 AM

    I am running a simple TEXT_MON WOB

     

    TEXT_MON A079011T                            

       AGENT SCWKLDT1                             

       TEXTFILE 'D:\TEST\eric\eric.txt'           

       TEXTSTRING 'XXXX' EXIST                    

       SEARCHRANGE LINE FROM(1) TO (250)          

       RELEASE ADD(FOUND) COND(RC(0))             

       RELEASE ADD(NOTFOUND) COND(RC(1))          

       RUN ANY                                    

    ENDJOB                    

     

    Be design when the string is not found the wob fails. I do not want it to fail but complete successfully, and release subsequent jobs based on RC. The correct jobs are released but the wob fails. I tried CCCHK RC(0:1) OK CONTINUE and the wob still fails and EXITCODE 1 SUCCESS, when I try this I get a simulation error ” INVALID COMMAND, EXITCODE”. I want this to treat it as a YES/NO and not a success/fail. Any thoughts?

     

    ESP EE 11.4



  • 2.  Re: Text Mon wob to complete successfully whether text is found or not

    Posted Mar 02, 2017 10:05 AM

    EXITCODE cannot be used on TEXT_MON Workload Objects.

     

    As a workaround you can create an OS specific Job Type and the use the EXITCODE for conditional release.

     

    Additional details for a solution can be found at https://communities.ca.com/thread/241761159

     

    In the thread there are solutions for Windows and Linux.

     

    Does that provide what you need?



  • 3.  Re: Text Mon wob to complete successfully whether text is found or not

    Posted Mar 02, 2017 10:27 AM

    My customer is determined to use TEXT_MON wobs and we have a process in place that will FC them if fail. One problem is we report failed jobs monthly and these are not really failures.



  • 4.  Re: Text Mon wob to complete successfully whether text is found or not
    Best Answer

    Posted Mar 02, 2017 03:54 PM

    Prior to doing the automated process to FC, could you insert the MGRMSG command to reset CCode?

     

    I have hard-coded the values for WOB Name, APPL and APPLGEN but you would use Symbolics in the automated process.

     

    CSF of TEXT_MON not finding string

    Job Name ApplName CCode P Node   Gen#   HC Job Status    
    TEXTMON1 TEXTMON      1 FAIL         77  0 Line not found

     

    MGRMSG Command - Note syntax is Case Sensitive

    MGRMSG . . . . TEXTMON1/TEXTMON.77/MAIN State Complete Cmpc(0)

     

    CSF of TEXT_MON after MGRMSG Command

    Job Name ApplName CCode P Node   Gen#   HC Job Status    
    TEXTMON1 TEXTMON      0 FAIL         77  0 Line not found

     

     

     

    Would that eliminate it from the 'failed' report?