AutoSys Workload Automation

 View Only
  • 1.  Adding a jobs output to a GLOB to use by another job as input

    Posted Jun 19, 2020 12:47 PM
    I want to list a folders contents on one machine and store it as a GLOB to use as input to a job on another machine.  Trying to find examples but I'm not having any luck.  Anyone have some generic examples they can share?

    Thanks!

    ------------------------------
    Bo Marshall
    Applications Systems Analyst/Programmer
    IS_PCT – Production Control Team
    Health Alliance Plan
    ------------------------------


  • 2.  RE: Adding a jobs output to a GLOB to use by another job as input

    Posted Jun 19, 2020 03:20 PM

    You can write a script and pass a sendevent command to force start the job from the script and provide the parameters in jobs command line with the variable like: $$INPUTFILE.

     

    Regards,

    Sandeep K V

    Allegis Group
    +1 254 334 2858 [ mobile ]

    +1 410 579 4834 [ Work ]

     

     

     






  • 3.  RE: Adding a jobs output to a GLOB to use by another job as input

    Posted Jun 19, 2020 03:27 PM
    Kicking the job off is not a problem.  It's loading the output from the command into the DB as a GLOB that I'm trying to figure out.


  • 4.  RE: Adding a jobs output to a GLOB to use by another job as input
    Best Answer

    Posted Jun 24, 2020 01:03 AM
    Simple text glob example: 

    insert_glob: myglob
    blob_mode: text
    blob_input: <auto_blobt>Testing this glob</auto_blobt>


    /* ----------------- create_glob_cmd ----------------- */

    insert_job: create_glob_cmd job_type: CMD
    command: echo "Hello World!"
    machine: node1
    owner: autosys
    permission:
    date_conditions: 0
    std_out_file: "$$glob.myglob"
    std_err_file: "/tmp/$AUTO_JOB_NAME.err"
    alarm_if_fail: 0
    alarm_if_terminated: 0


    /* ----------------- consume_glob_cmd ----------------- */

    insert_job: consume_glob_cmd job_type: CMD
    command: cat
    machine: node2
    owner: autosys
    permission:
    date_conditions: 0
    std_in_file: "$$glob.myglob"
    std_out_file: "/tmp/$AUTO_JOB_NAME.txt"
    std_err_file: "/tmp/$AUTO_JOB_NAME.err"
    alarm_if_fail: 0
    alarm_if_terminated: 0

    $ autosyslog -J consume_glob_cmd -tO
    Hello World!

    1. The create_glob_cmd sends the output to the glob named myglob
    2. The consume_glob_cmd takes the myglob as the infile (std_in_file) and does a cat <content of the myglob>
    3. Output of the consume_glob_cmd is written to the std_out_file.


  • 5.  RE: Adding a jobs output to a GLOB to use by another job as input

    Posted Jun 25, 2020 07:06 AM

    I would never allow users to create globs as they cannot be provisioned within eEM. Until then. Globs are off limits.

    ��

     

     

     

    Steve C.

     



    Nothing in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.

    Confidentiality Note: This message is intended only for the person or entity to which it is addressed. It may contain confidential and/or privileged material. Any review, transmission, dissemination or other use, or taking of any action in reliance upon this message by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this message in error, please contact the sender and delete it from your computer.





  • 6.  RE: Adding a jobs output to a GLOB to use by another job as input

    Posted Jun 28, 2020 02:41 AM
    Valid point :)