<quote>

Delays expansion and execution of block code until needed. May be used in conjunction with <unquote> to then execute the code. Also allows for the insertion of Macro Language code into a variable that can be referenced. (Available as of prod-9)

Description

The <quote> operation provides the facility for storing 1010data Macro Language operations in a list-variable for access at a later time. <quote> must be contained in a variable in the long form of <set>. The resultant variable will then become a list, where each element of the list-value contains one of the operations inside the <quote> tags.

If variables are specified (as attributes in the opening tag or via the env_ attribute), the corresponding values will be substituted for the variables within the quoted XML; however, no other block code processing or variable substitution will occur.

Syntax

<block>
  <set>
    <var>
      <quote [USER_DEFINED_VAR_1]="[VALUE_1]" ...
          [USER_DEFINED_VAR_N]="[VALUE_N]">
        [OPS_FOR_LIST]
      </quote>
    </var>
  </set>
</block>

Attributes

env_
Accepts a package containing attribute/value pairs to be used for variable substitution within the <quote> element.

Example

<block bats="'L'">
  <base table="pub.demo.baseball.master"/>
  <set>
    <code_storage>
      <quote>
        <if test="{bats='L'}">
          <then>
            <sel value="bats='l'"/>
          </then>
        </if>
        <colord cols="bats"/>
      </quote>
    </code_storage>
  </set>
  <willbe name="test" value="{@code_storage.1}"/>
</block>

In the example above, the <if> operation is stored in code_storage.1 and the <colord> operation is stored in code_storage.2.