Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2013-04-26T19:20:10Z by Veluri
Veluri
Veluri
31 Posts
ACCEPTED ANSWER

Pinned topic Passing paramters from TWS to Compute Grid jobs

‏2013-03-26T15:50:53Z |
Hi All:
Can any one guide us , How to pass paramters from TWS z/os to Compute Grid Jobs.

Our environment look as below

TWS is located on z/os which interacts with FTA located on AIX box. WSGRID will execute the batch jobs

Thank you
Murali.
Updated on 2013-04-04T21:41:24Z at 2013-04-04T21:41:24Z by sspavan
  • sspavan
    sspavan
    60 Posts
    ACCEPTED ANSWER

    Re: Passing paramters from TWS to Compute Grid jobs

    ‏2013-04-04T21:41:24Z  in response to Veluri
    Hi,

    We do something similar. From TWS we trigger a UNIX shell script, also pass xjcl and a properties filename to a script.
    The unix shell script inturn run WSGrid.sh <xjcl> <prop-filename>.
    The xjcl and prop-filename are values passed from TWS.

    Thanks,
    Pavan
    • Veluri
      Veluri
      31 Posts
      ACCEPTED ANSWER

      Re: Passing paramters from TWS to Compute Grid jobs

      ‏2013-04-26T19:20:10Z  in response to sspavan

      Pavan:

      Do you have example of   xjcl and prop-file

      In property file  I writting  Subtitution property as mentioned below

       

      #Controll Properties

      # Host of my job scheduler
      scheduler-host=XXXXXXX

      # http port of my job scheduler server
      scheduler-port=XXXX

      # user id of job submitter
      #submitter-userid=XXXX

      # enable debug
      debug=false

      # increase timeout to 8 seconds per message
      timeout=8000

      #Job Properties

      #The following Job-Name property values will be subtituted for jobname

      #Job-name=CaseBatchApp

      # The following substitution property values will be passed to the job.
      #Database properties
      subtitution-prop.checkPoint=100
      subtitution-prop.DB2jndi=jdbc/ReffAppDS
      subtitution-prop.JPA_PERSISTENT_UNIT=CaseBatchDefaultPU
      subtitution-prop.use_JTA_transactionstrue

      #File properties
      subtitution-prop.AppendJobIdToFileName=true
      subtitution-prop.encoding==8859_1
      subtitution-prop.outfileHeader=yes
      subtitution-prop.delimitter=|
      subtitution=prop.outputDataStream=/home/mvb/T2Batch/output/CMDataOutFile.txt

      #perfomance properties
      subtitution-prop.perfEnabled=true

      #Debug properties
      subtitution-prop.debugEnabled=false

       

      I have attached the xJCL

       

      WSGrid.sh   CaseAddress.job   AIX-Sub-CaseAddressBatchxJCL.xml

      Batch job throws error  unable to find the subtitution values.

      I'm following correct syntax?