Automic Workload Automation

  • 1.  How to transmit to ksh script, variable values witout export them or setting them as parameter

    Posted Feb 10, 2015 09:13 AM
    Hi,

    Is it possible to have acces to variable value inside an external script. Example below where I want to access in the "Generic_AutomicJob.ksh" script to the value of &$NAME# (Using export is working but I have to many variables and I need to share a generic script between more than 1000 JOB)

    export JOB_NAME=&$NAME#
    /MyScripts/automic/Generic_AutomicJob.ksh TYPE=REPORT
    exit 0

    Thanks

    David (Rookie for Automic Automation but not for a long time)







  • 2.  How to transmit to ksh script, variable values witout export them or setting them as parameter
    Best Answer

    Posted Feb 10, 2015 02:14 PM
    It’s not exactly clear to me what all your issues are.  How many script variables are you planning on passing to the shell and will they always be the same ones?

    We, for example, use a fair number of Include objects that perform various repeatable tasks.  They are inserted in the appropriate place in the various Process tabs in objects.

    In your case, assuming that I understand, you could consider something like the following.

    Object type Include (JOBI) named COMMON_EXPORTS, for example:

    ! COMMON_EXPORTS Include 
    export JOB_NAME=&$NAME#
    export . . . .
    export . . . .

    In the Process tab of your jobs:

    :INC COMMON_EXPORTS
    /MyScripts/automic/Generic_AutomicJob.ksh TYPE=REPORT
    exit 0
    Also, we tend to only have a single JCL statement (shell command) in our Process tab with just enough to get the process executing on the Agent.  We do this to facilitate application development and the transition from test through to production.  It places all of the responsibility for the contents and operation of a shell on the developer and not within AE.  This means that what usually executes in a lower Client for testing is the same thing that executes in the production Client.  Should any changes be required to the shell script it can be done through our application change managements system and not require any UC4 changes.



  • 3.  How to transmit to ksh script, variable values witout export them or setting them as parameter

    Posted Feb 11, 2015 03:39 AM
    Hi Mark,

    Thanks for your answer. Coming from $Universe we are currently working on One Automation POC and we start to understand the philosophy of this product. The conclusion is : "Think differently" !


  • 4.  How to transmit to ksh script, variable values witout export them or setting them as parameter

    Posted Feb 18, 2015 03:08 PM
    Hi David_Pierre-Jean_2400  and Mark_Hadler_430 

    The new v11 release introduces the ability to set Automic Script Variables from a external script or command line.

    Link to announcement post listing some of the new features.

    Here's a similar post.