ESP Workload Automation

 View Only
  • 1.  USE WOBDATA to pass PSLIST/TASKLIST variables to another wob

    Posted Mar 20, 2020 02:55 PM
    ​After a TASKLIST command, I see the PID of a process that is running.  I attempted to extract that PID using WOBDATA, but have been unsuccessful.  Here is what I tried.

     PID1 = WOBDATA('SCWKLDD2/WORECURS.4091','PID')

    Here is the tasklist spool file I'm trying to retrieve the PID from   

       

    Output of messages for workload object SCWKLDD2/WORECURS.4091/MAIN

    Start date Fri Mar 20 10:56:27 2020                              

    ---------------------------------------------------------------- 

    Image Name:   csrss.exe                                          

    PID:          396                                                 

    Session Name: Services                                           

    Session#:     0                                                  

    Mem Usage:    4,764 K                                            

    Status:       Running                                            

    User Name:    NT AUTHORITY\SYSTEM                                

    CPU Time:     0:02:45                                            

    Window Title: N/A     



    ------------------------------
    John Malczyk
    IT Systems Engineer Sr.
    Progressive Insurance
    Ohio
    ------------------------------


  • 2.  RE: USE WOBDATA to pass PSLIST/TASKLIST variables to another wob
    Best Answer

    Broadcom Employee
    Posted Mar 20, 2020 05:25 PM
    Hi John,

    As I learned, ONLY the listed ones in the doc can be used currently:
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-mainframe-software/automation/ca-workload-automation-esp-edition/11-4/reference/statements/wobdata-statement-retrieve-data-from-workload-object.html

    And PID is not on the list. And I can see it's a good idea to have it. If you would like, please post an idea for enhancement consideration:
    https://community.broadcom.com/ideation/allideas

    Thank you,

    Lucy


  • 3.  RE: USE WOBDATA to pass PSLIST/TASKLIST variables to another wob

    Posted Mar 23, 2020 12:01 PM
    Lucy,

    Can you provide an example of capturing the STDOUT from a WOB, preferably a Windows NT job.

    Thanks,

    ------------------------------
    System Engineer
    Progressive
    OH
    ------------------------------



  • 4.  RE: USE WOBDATA to pass PSLIST/TASKLIST variables to another wob

    Broadcom Employee
    Posted Mar 23, 2020 01:45 PM
    Hi Len,

    There is one example in the above doc link, you can just change STDERR to STDOUT:
    Example: Retrieve the variable STDERR from a Windows workload object
    This example shows how to assign ABC the value of the variable STDERR from the Windows workload object PAYJOB4 in generation 2 of the PAYROLL application. You can use the STDERR variable to capture the STDERR file name from the agent.
    ABC = WOBDATA('PAYJOB4/PAYROLL.2','STDERR')
    Thank you,

    Lucy