Topic
2 replies Latest Post - ‏2012-06-27T08:11:05Z by ibm-forum-math
ibm-forum-math
ibm-forum-math
2 Posts
ACCEPTED ANSWER

Pinned topic TWS - Defined new job with varible system WS

‏2012-06-26T15:39:24Z |
Hello,

I'm trying to declare a new job that be run on a client Windows 2008 server (The master server TWS is a UNIX).

On the job's definition, line SCRIPTNAME, I have to use a 'environment variable system' declared on the Windows server (TWS client).

This 'environment variable system' is :
V_current = v1.0
And the SCRIPTNAME line is :
SCRIPTNAME "D:\%V_current%\lancher.cmd"

But, it seems the %V_current% is not interpreted when the job is runned.
And, the job turns on 'FAILED' status after this exectution, with no log file.

Please, do you have a solution for run a job with a variable system on the path?
Updated on 2012-06-27T08:11:05Z at 2012-06-27T08:11:05Z by ibm-forum-math
  • mymaestro
    mymaestro
    176 Posts
    ACCEPTED ANSWER

    Re: TWS - Defined new job with varible system WS

    ‏2012-06-26T16:50:19Z  in response to ibm-forum-math
    Try using DOCOMMAND instead of SCRIPTNAME.
  • ibm-forum-math
    ibm-forum-math
    2 Posts
    ACCEPTED ANSWER

    Re: TWS - Defined new job with varible system WS

    ‏2012-06-27T08:11:05Z  in response to ibm-forum-math
    Thank a lot, it works fine.
    Even if I shall have preferred a solution with SCRIPTNAME.