use do_cmd to setvar ( to set a variable )
use that variable as a parm to job that is neing kicked of..
simple enought but i do't think i said it clearly. please contact me for further explanation,
The issue with global variables is they would be overridden the next time a file arrives. That variable is global in nature. I can't guarantee that my Control-M job will finish before receiving the next file. Do you have any solution for that?
you only need the global variable to hold the value for few seconds. once
the job is executing, it is ok to have the parameter value chnaged.
are you spawning new jobs or plan to use same job over and over.
you may also try using init , fw and process job flow.
init will satify the condition for the first time
everyitme a file is found file watcher will exit and delete it's in condition and pass a condition to processing job.
processing job than will completed and create teh same condition a init to allow fw to run again.
fw will not run when processing job is running.
( both jobs will be cyclic. deleteing their own in coditions when end. )
are you able to capture the filename in the fw input script.. i kinda of know it's possible but have not used it yet.