AutoSys Workload Automation

Expand all | Collapse all

Its possible export the applications to excel?

  • 1.  Its possible export the applications to excel?

    Posted Dec 21, 2016 10:16 AM

    Hello partners!
    Any of you know if its possible to export the applications to excel to be able to have an inventory of all the jobs that exist in CAWA DE? Or any query they have to obtain this information
    thanks and regards



  • 2.  Re: Its possible export the applications to excel?
    Best Answer

    Broadcom Employee
    Posted Dec 21, 2016 10:29 AM

    Hi Ayzar,

     

    You can run the "Jobs by Application" default report, available in desktop client.

     

    Please refer to the documentation link below:

     

    Running Predefined Reports - CA Workload Automation DE - 12.0 - CA Technologies Documentation 

     

    You can also export the report results to Microsoft Word, Microsoft Powerpoint, Microsoft Excel, PDF or PostScript.

     

    Hope it helps.



  • 3.  Re: Its possible export the applications to excel?

    Posted Dec 21, 2016 12:27 PM

    Gracias Leandro!

     

    Pero lo que necesito es la definicion, necesito obtener en algun archivo tipo excel o txt o algun otro formato los campos con sus respectivos valores. por ejemplo

    Job Name : VALIDA_DIARIO_MIGRADOR_TH_VENTAS_SUBFAMILIA 

    Task Type : Command 

    Node Id : SRD201051 

    Scheduling Table : ATENEABI 

    Command : "D:\BMC Software\CTM_Batch\BAT_exec.bat" DBDMS SpValidaMigracion "1," "'Th_Ventas_SubFamilia'," "'var_th_ventas_subfamilia'"

     

    El reporte que me comentas me da estadisticas de ejecucion no la definicion de los eventos, aplicaciones y jobs



  • 4.  Re: Its possible export the applications to excel?

    Broadcom Employee
    Posted Dec 21, 2016 10:54 AM

    You can use the imexutil export utility to export applications definition to a directory and import the xml data to excel.

    If you need to run a query, you can query the definition field in esp_ams_df table for artifacttype application but the data are stored in clob format so you might need to consult the DBA.

     

    Please refer to the docs on how to export application artifact;

    exportartifact Command—Export Artifacts - CA Workload Automation DE - 12.0 - CA Technologies Documentation 

     

    Hope this helps.



  • 5.  Re: Its possible export the applications to excel?

    Posted Dec 21, 2016 12:29 PM

    Gracias Olusegun!

    directamente no se puede de forma natural llevar un xml a un excel o por lo menos no he podido jajaja

    dejame abro un caso a ver si me ayudan los desarrolladores gracias por su tiempo



  • 6.  Re: Its possible export the applications to excel?

    Broadcom Employee
    Posted Dec 21, 2016 12:56 PM

    Hi Ayzar,

     

    I'm able to open a xml file normally in Excel. Below is a snippet (opened in Excel) of HOUSEKEEPING_UTILITY application, that comes by default in DSERIES 12.0

     

    /nt_job/@name/nt_job/@qualifier/nt_job/args/nt_job/cmdname
    DELETE_STATUSMESSAGESOLDER_THAN_7_DAYSDSERIES12 7500 ADMIN admin "deletestatusmessages threshold('%APPL.date')"C:\CA\WorkloadAutomation_R12\bin\cli.bat
    PURGE_COMPLETED_JOBSVERIFY_FIRST_GENERATIONDSERIES12 7500 ADMIN admin "PURGECOMPLETEDJOBS application('VERIFY.1')"C:\CA\WorkloadAutomation_R12\bin\cli.bat
    PURGE_COMPLETED_JOBSOLDER_THAN_7_DAYSDSERIES12 7500 ADMIN admin "PURGECOMPLETEDJOBS olderthan('now less 7 days')"C:\CA\WorkloadAutomation_R12\bin\cli.bat
    CLEANUP_TRACELOGSOLDER_THAN_7_DAYSDSERIES12 7500 ADMIN admin 7C:\CA\WorkloadAutomation_R12\bin\cleanup.bat


  • 7.  Re: Its possible export the applications to excel?

    Posted Dec 21, 2016 01:13 PM

    si esas pruebas ya las intente

    se pierde el formato segun la cantidad y el tipo de jobs

     



  • 8.  Re: Its possible export the applications to excel?

    Broadcom Employee
    Posted Dec 21, 2016 02:25 PM

    Hi Ayzar,

     

    DSERIES offers by default only the ways mentioned above to export the data.


    Unfortunately there is no other native options to provide what you need. We suggest you to raise an enhancement idea in CA Workload Community to add this feature to the product.

     

    Regards,

    Leandro





  • 9.  Re: Its possible export the applications to excel?

    Posted Dec 21, 2016 02:34 PM

    I never knew the xml's could be opened in excel.  We have used the xml's before in different ways but I really like this.  I don't think we would use them in excel a lot but I really like knowing the option is there. 

     

    Thank you!



  • 10.  Re: Its possible export the applications to excel?

    Broadcom Employee
    Posted Dec 21, 2016 02:43 PM

    Hi,

    Just drag and drop the xml file into a blank excel sheet. The following dialog box will open:

     

     

    After this, the xml content will be displayed in the sheet. But it will requires some manual adjusting in the cells size, width, etc..

     

    Regards,

    Leandro



  • 11.  Re: Its possible export the applications to excel?

    Posted Dec 22, 2016 08:51 AM

    Hi Segun,

    I stumbled across this conversation while looking for details on exporting. I'm curious how to import an XML file from Excel, if you would share here the steps? Or is there docs on this as well online?

     

    Thanks,

    Denise



  • 12.  Re: Its possible export the applications to excel?

    Broadcom Employee
    Posted Dec 22, 2016 10:17 AM

    Hi Denise,

     

    Just drag and drop the xml file into a blank excel sheet. The following dialog box will open:

     

     

    After this, the xml content will be displayed in the sheet. But it will requires some manual adjusting in the cells size, width, etc..

     

    Regards,

    Leandro



  • 13.  Re: Its possible export the applications to excel?

    Posted Dec 21, 2016 02:57 PM

    I know it isn't ideal but it helps us a lot.  We run sql against ESP_GENERIC_JOB (history data) to get a list of jobs that run.  This only picks up jobs that load with the applications so if the job has a DO NOT RUN statement it isn't picked up because it isn't in this table.  You can add more fields to the select statement.  The run statements do not show in history tables.  Do not select start or end date/time that will make each job instance unique and the report would be really big and every job would be a count of 1..

     

    You can get

    application name

    job name

    agent

    script

    arguments

    etc...

    select WA.ESP_GENERIC_JOB.JOB_NAME,WA.ESP_APPLICATION.APPL_NAME,

    count(WA.ESP_GENERIC_JOB.JOB_NAME)

    from WA.ESP_APPLICATION,WA.ESP_GENERIC_JOB

    where WA.ESP_APPLICATION.APPL_ID=WA.ESP_GENERIC_JOB.APPL_ID

    group by WA.ESP_GENERIC_JOB.JOB_NAME, WA.ESP_APPLICATION.APPL_NAME

    order by WA.ESP_GENERIC_JOB.JOB_NAME



  • 14.  Re: Its possible export the applications to excel?

    Posted Dec 21, 2016 04:30 PM

    muchas gracias por su tiempo

    asi lo estoy obteniendo pero es muy tardado y la informacion no esta completa hay que ir uniendo muchas consultas

    bueno muchas gracias



  • 15.  Re: Its possible export the applications to excel?

    Posted Dec 28, 2016 11:17 AM
      |   view attached

    Hey All, 

    Just to add another option on the table that is a little different. Someone may remember this from way back. It may have been version 3 or 4 I first created this for. 

     

    Attached is a spreadsheet (GetJobInfo.xlsm) with a small macro inside. It contains instructions on how to run the macro on one tab, and an example of the output on the next tab. The steps are below. 

     

    In dSeries:

    Download the schedule, then do a right click and "Save As". Save it to C:\Temp\

     

    In Excel:

    1) Open the spreadsheet. 

    2) If a yellow warning message pops up select the "Enable Content" to enable the macro.

    3) Run the macro by going to the "View" tab on the top toolbar, Click the Macros icon, highlight "GetJobData" and click "Run"

    4)  When prompted for the schedule name put in the schedule name.  Do not include the .xml extension

     

    Advantages:

    I think it is easier to read

    It puts all the information for the same job on a single line.  A cell may show that the job has 10 run criterias or that it releases 5 jobs.  

    The Excel file doesn't contain every scrap of information that the XML file has.

     

    Disadvantages:

    The Excel file doesn't contain every scrap of information that the XML file has. 

     

    Let me know what anyone thinks. I will keep it to myself if no one sees any value in it. 

    Fields can be added if needed/requested. Send me an example .xml file for any fields that are needed.  

     

    Don

    Attachment(s)

    xlsm
    GetJobInfo.xlsm   60 KB 1 version


  • 16.  Re: Its possible export the applications to excel?

    Posted Dec 28, 2016 11:38 AM

    Hi, this sounds interesting but I don't think I am getting the same results after I click on Macros, I cannot highlight "getjobdata" and click run.

     

    In Excel:

    1) Open the spreadsheet. 

    2) If a yellow warning message pops up select the "Enable Content" to enable the macro.

    3) Run the macro by going to the "View" tab on the top toolbar, Click the Macros icon, highlight "GetJobData" and click "Run"

    4)  When prompted for the schedule name put in the schedule name.  Do not include the .xml extension

     

    what I see



  • 17.  Re: Its possible export the applications to excel?

    Posted Dec 28, 2016 12:59 PM

    Hi 

    Hmmm....

    Did you open the spreadsheet that was attached to this thread?

    Did you see the example spreadsheet with data? 

     

    It looks like the macro is not in the spreadsheet. I guess it may have been removed.  

     



  • 18.  Re: Its possible export the applications to excel?

    Posted Dec 28, 2016 01:46 PM

    I didn't open your attachment I tried with my own application, I must have to create the macro first.. 

    I did just try your attachment now and because of my security settings macros have been disabled. 

     

    thank you

    sharon



  • 19.  Re: Its possible export the applications to excel?

    Posted Dec 28, 2016 02:10 PM

    Hi Sharon, 

    Macro security varies from shop to shop. In my Excel the yellow warning message pops up when I open the spreadsheet. This enables it only for the sheet that I am in.  If you are interested it may be possible to enable macros using the steps below. 

     

    Open spreadsheet.

    Click the File tab.

    Click Options.

    Click Trust Center, and then click Trust Center Settings.

    In the Trust Center, click Macro Settings.

    Make the selections that you want.

    Click OK.



  • 20.  Re: Its possible export the applications to excel?

    Posted Jan 03, 2017 11:32 AM

    hi powdo03

     

    I'm still trying
    Something I do wrong
    Does not open the file can not find it

     

    The path where xml is placed without extension is C: \ Temp

     

    But excel returns another

     

     

    The Schedule HEL was not found
    Make sure the Schedule is in the directory below
    C:\Program Files\Cybermation\ESP Desktop Client\SampleApplications\
    When prompted for the schedule name put in the schedule name
    Do not include the .xml extension
    Try again


  • 21.  Re: Its possible export the applications to excel?

    Posted Dec 30, 2016 11:50 AM

    Gracias por la info

     

    saludos



  • 22.  Re: Its possible export the applications to excel?

    Posted Jan 03, 2017 12:35 PM

    Que Pasa, 

    The process works for me.  The HEL schedule needs to be in C:\Temp\. Do you find a HEL.xml in C:\Temp ?  Then when the macro prompts for the file put in HEL

     

    Let me know if this works for you. We can do a WebEx if needed. 

     



  • 23.  Re: Its possible export the applications to excel?

    Posted Jan 03, 2017 12:43 PM
      |   view attached

    Including new version with an updated error message. 

    Attachment(s)

    xlsm
    GetJobInfo.xlsm   54 KB 1 version


  • 24.  Re: Its possible export the applications to excel?

    Posted Jan 10, 2017 12:41 PM

    Hola!

    jejej aun no he podido hacer trabajar tu excel quiza hago algo mal.

    lo que me intriga mas es ser el unico cliente que requiera esto

     

    soy nuevo con este producto y abri una idea pero no puedo hacerla popular algun consejo?

     

    gracias y saludos