I have a UC4 job which reads a value from the read buffer and then sets a job plan variable using PSET.
The value that is read contains an ampersand character i.e. 6+@}/r&M
The PSET appears to work, however, the POST-CONDITIONS of the job fail – complaining that 'U1001308 Variable 'M' has not yet been defined.'.
So, how can I pass a value containing an ampersand to a job without it failing in this way?
The main problem is that the AE server will try to resolve strings as variables if they contain the "&" character.
However this can probably be bypassed with the scenario below : store the value in a separate (STATIC) VARA object with :PUT_VAR, then retrieve it with GET_VAR.
Then start :
:READ &ERSAND# ,,"Type in a string that contains &"
:SET &RESULT# = GET_VAR(VARA.AMPERSAND,"value")
:P Your string is &RESULT#
VARA.AMPERSAND is populated :
And the report contains the expected value :