Pass PowerShell Variables from one JAMS Job to Another


When submitting a JAMS Job from a PowerShell script, users can pass any PowerShell Variable to the JAMS Job being submitted, as long as the name of the JAMS Parameter on the Job matches the name of a Variable in the PowerShell Script.

NOTE: PowerShell Variables may begin with a dollar sign, e.g. "$VariableName". On the JAMS Job, the "$" is not needed, so the JAMS Parameter would be "VariableName"

To pass variables, include the -usevariables option in the Submit-JAMSEntry line, as seen below. 

$ParameterA = 10
$ParameterB = "StringValue"
Submit-JAMSEntry -Name "JobName" -Server JAMSServerName -UseVariables



Have more questions? Submit a request