Automic Workload Automation

  • 1.  Analyse de l'existant

    Posted Jul 06, 2017 05:08 AM
    Bonjour,

    Je recherche un moyen de créer un fichier CSV qui contiendrait un descriptif complet de ce qui est sur un client, de manière hiérarchique.

    Schedule -> event -> définition période -> objet lancé via !process
                    -> jobp keyword | sync -> jobs1 sync | host login pré-traitement | script | post-traitement
                                                              jobs2  '                                                                                    '
                                                              jobp2  -> sync -> jobs3 sync | host login pré-traitement | script | post-traitement
                                                         -> dépendance externe
    je ne vois pas trop comment faire ça.
    Il doit y avoir moyen avec des requêtes SQL mais ça me semble pas évident du tout...

    Une idée ?

    Merci d'avance,
    Didier





  • 2.  Analyse de l'existant

    Posted Jul 17, 2017 03:52 AM


  • 3.  Analyse de l'existant

    Posted Jul 19, 2017 02:54 AM
    Bonjour,

    Merci pour la réponse...
    Je vais voir ce que je peux en faire


  • 4.  Analyse de l'existant

    Posted Jul 19, 2017 03:08 AM
    j'ai un soucis avec la première requête

    select distinct OH_Name as 'Parent Workflow', oh_idnr,JPP_LNR as 'OBJ Nr within Workflow',  JPP_OBJECT as 'OBJ Name within Workflow',JPP_OTYPE as 'OBJ Type within Workflow', JPP_WELSE, JPPA_WHEN 'Dependency - Status of Predecessor', JPP_WhenExecute as 'ELSE execute' from OH, JPP,JPPA
    where oh_client=1000
    and OH_IDNR = JPP_OH_IDNR
    and JPP_OH_IDNR = JPPA_OH_IDNR
    and JPPA.JPPA_JPP_LNR = JPP.JPP_LNR
    and oh_deleteflag=0
    and OH_IDNR > 100000
    and JPP_OTYPE NOT in ('<FE>', '<END>', '<START>')
    order by OH_NAME;

    ça me réponds : ORA-00923: FROM keyword not found where expected
    je suis pas bon en anglais ni en sql, j'ai tenté de cherché sur le net mais je n'ai rien trouvé d'évident pour moi



  • 5.  Analyse de l'existant

    Posted Jul 19, 2017 04:52 AM
    Bonjour Didier,

    La requête fonctionne telle quelle sous SQL Server, par contre pour Oracle j'ai eu le même souci.

    En remplaçant les caractères ' (simples quotes) par des " (double quotes), et en renommant l'alias 'Dependency - Status of Predecessor', trop long pour Oracle, cela fonctionne.

    Ci-dessous une requête qui marche dans mon environnement (base Oracle 11g):
    select distinct OH_Name as "Parent Workflow", oh_idnr,JPP_LNR as "OBJ Nr within Workflow",  JPP_OBJECT as "OBJ Name within Workflow",JPP_OTYPE as "OBJ Type within Workflow", JPP_WELSE, JPPA_WHEN "Status of Predecessor", JPP_WhenExecute as "ELSE execute" from OH, JPP,JPPA
    where oh_client=1000
    and OH_IDNR = JPP_OH_IDNR
    and JPP_OH_IDNR = JPPA_OH_IDNR
    and JPPA.JPPA_JPP_LNR = JPP.JPP_LNR
    and oh_deleteflag=0
    and OH_IDNR > 100000
    and JPP_OTYPE NOT in ('<FE>', '<END>', '<START>')
    order by OH_NAME;

    Cordialement,

    Antoine



  • 6.  Analyse de l'existant

    Posted Jul 19, 2017 07:24 AM
    Merci, la requête fonctionne