Passing parameters from Control-M to a batch job

I have a batch job which needs two parameters and I want to be able to have Control-M jobs pass these parameters to the batch job. Each Control-M job will have different values for the two parameters.
How do I do this?


owi666 (BOB member since 2011-11-28)

Good question! You could use the Export Execution Command to create the .bat/.txt files. You could then edit the files with the parameters before calling the .bat file. Alternatively, you could direclty call the al_engine.exe or AL_RWJobLauncher.exe commands to start a job from the command line.

I looked into this a while back, but not too seriously. My conclusion was that editing the .bat/.txt files wasn’t a very simple way to go. Figuring out the command line syntax was a pain but it was the better way to go. Do a search on the two command line utilities and you should find some information to get you started.


eganjp :us: (BOB member since 2007-09-12)

when you export-execut-command and you job has a parameter defined and you pass a value into it, then the created batch script does have a -P parameter with the encrypted value.

Can you still pass the value unecrpyted into the -P parameter? Can’t remember. Anywhere, in worst case you call the encryption utility of DS from the command line and use the returned value into the script.


Werner Daehn :de: (BOB member since 2004-12-17)

You used to be able to pass them un-encrypted, but I haven’t tried it recently. I moved more toward just having a database table that the job checked against for values and had whatever was calling the job update the parameter tables as needed.

  • E

eepjr24 :us: (BOB member since 2005-09-16)