AutoSys Workload Automation

  • 1.  Using WOB built-in variables

    Posted Apr 09, 2015 04:37 PM

    Hi,

     

    I have an job currently in a dseries that is running on the mainframe, via a z/OS agent. I have a need to pass the job's run time (HHMNSS) to the JCL for the job, using the Environment Variables. What I have done so far:

     

    1) Defined the following ENVAR:


    TIME_STAMP     %JOBTIME

     

    This is present in the JCL coded as %TIME_STAMP.

     

    2) Defined Javascript at the job level, to execute at job runtime as follows:

     

    JOBTIME=WOB._RHH+WOB._RMN+WOB._RSS;

     

    When I simulate the event, the results for the TIME_STAMP envar is NaN (looks like garbage)

     

    Is this something that cannot be simulated and can only be tested through real-time processing?

     

    Thanks,

    Denise



  • 2.  Re: Using WOB built-in variables

    Posted Apr 17, 2015 02:46 PM

    Anyone up to the challenge of solving Denise's question?

     

    Thanks!



  • 3.  Re: Using WOB built-in variables
    Best Answer

    Broadcom Employee
    Posted May 06, 2015 05:26 PM

    Hi DJ,

    Yes, you are specifying run time variables.  The runtime are only resolved when the job comes in to existence.  In this case, the manager will then take the current time and resolve the variables when it is about to send it to the agent.

     

    Thank you,

    Nitin Pande