AutoSys Workload Automation

 View Only
  • 1.  How to dump out system level symbolic variable ESP.* values ?

    Posted Feb 20, 2015 10:16 AM

    Increasingly we are using/defining "system level" symbolic variables in dSeries.

    Can you tell me how to list ( or dump out ) all  ESP.*  names and values ?

    Thanks in advance.



  • 2.  Re: How to dump out system level symbolic variable ESP.* values ?

    Posted Mar 09, 2015 11:17 AM

    Anyone able to help Henry?

     

    Thank you

     

    Henry Cheung wrote:

     

    Increasingly we are using/defining "system level" symbolic variables in dSeries.

    Can you tell me how to list ( or dump out ) all  ESP.*  names and values ?

    Thanks in advance.



  • 3.  Re: How to dump out system level symbolic variable ESP.* values ?
    Best Answer

    Broadcom Employee
    Posted Apr 03, 2015 07:28 AM

    Hi,

     

    Can you please execute the below javascript in any application/job and the ESP variables will be created in the ESP.log file.

     

    APPL.newfile = file_create('c:\\temp\\ESP.log')

     

     

    for(var variable in ESP)

    {

        APPL.append = file_appendContents('C:\\temp\\ESP.log', variable);

    file_appendContents('C:\\temp\\ESP.log', '            ');

      

    }

     

    Hope it helps!

    Ravi Kiran



  • 4.  Re: How to dump out system level symbolic variable ESP.* values ?

    Posted Jun 24, 2015 11:11 AM

    Kunduri,  I finally get around to implement the java fragment you contribute.   It worked as it is.   I got about 50 values in the output file.  However, is it possible also to display the variable name to pair up with the value as well ?     As I am a java dummy,  I hope it is not too much to ask.   



  • 5.  Re: How to dump out system level symbolic variable ESP.* values ?

    Posted Dec 10, 2015 06:08 PM

    /*  improved foreach to enumerate names and values */

    for (var key in ESP) {
     
    if (obj.hasOwnProperty(ESP)) {
     
    /* useful code here

         str = key + " = " + ESP[key] + "\n" ;

      */

      }
    }