How to pass a Control-M variable as a literal name when running the Control-M/Server utility ctmvar thru a job? The job gives the error: Var name 'xxx' in -VAR invalid: it must begin with %%

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Server for UNIX and Microsoft Windows


    COMPONENT:

    Control-M/Server for UNIX and Microsoft Windows


    APPLIES TO:

    Control-M/Server for UNIX and Microsoft Windows ; All versions



    QUESTION:

    How to pass a Control-M variable as a literal name when running the Control-M/Server utility ctmvar thru a job? The job gives the error: Var name 'xxx' in -VAR invalid: it must begin with %%


    ANSWER:

     

    A special %%# prefix can be used to indicate that a variable or function should not be resolved.
    In these cases, the actual name of the variable or function (minus the # sign) is output.

    For example, Do Notification Variable %%#PARM1 is greater than 100 issues the following message:
    Variable %%PARM1 is greater than 100.

    See the Control-M documentation in the section "Variable Facility" (or "Autoedit Facility for versions 8.0.00 and older)

     


    Article Number:

    000017053


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles