Automic Workload Automation

 View Only
  • 1.  Write values of variables to a file on server

    Posted Jul 15, 2019 10:15 AM

    I have created some variables in a job and able to retrieve their value in process and pre-process tab.
    How can I write those values In a file which will be created on server ?


    Thanks,
    Moneeka



  • 2.  RE: Write values of variables to a file on server

    Posted Jul 15, 2019 10:44 AM
    Try something like this:
    Create an new process ​:CREATE_PROCCES
    Put the variables :PUT_PROCCES_LINE
    Write it to file :WRITE_PROCESS
    and Close the process :CLOSE_PROCESS


  • 3.  RE: Write values of variables to a file on server

    Posted Jul 15, 2019 10:57 AM
    See Sven Stroh's solution, or, if by "server" you mean the machine the agent is running on: depending on when those variables were defined, one can probably have Automic substitute them into the JOBS's JCL and do something like:

    echo "My value: &MY_VARA#" >> /tmp/outfile.txt​

    Br,


  • 4.  RE: Write values of variables to a file on server

    Posted Jul 15, 2019 11:33 AM
    Cartsen Schmitz's idea plus select the FILE block in the Windows tab of your object so you can see the file that gets generated at execution. The file location can be found by opening the last report and selecting the Directory tab or if you're using the AWI open the last report and change the REPORT drop down to Directory. This file location is set by the var, UC_EX_PATH_JOBREPORT inside the agents INI file. 

    HTH,
    Lon